Matrix Docker Ansible eploy
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

95 wiersze
5.1 KiB

  1. # mautrix-wsproxy is a Matrix <-> websocket bridge
  2. # See: https://github.com/tulir/mautrix-wsproxy
  3. matrix_mautrix_wsproxy_enabled: true
  4. matrix_mautrix_wsproxy_version: latest
  5. # See: https://mau.dev/tulir/mautrix-wsproxy/container_registry
  6. matrix_mautrix_wsproxy_docker_image: "dock.mau.dev/tulir/mautrix-wsproxy:{{ matrix_mautrix_wsproxy_version }}"
  7. matrix_mautrix_wsproxy_docker_image_force_pull: "{{ matrix_mautrix_wsproxy_docker_image.endswith(':latest') }}"
  8. matrix_mautrix_wsproxy_base_path: "{{ matrix_base_data_path }}/mautrix-wsproxy"
  9. matrix_mautrix_wsproxy_config_path: "{{ matrix_mautrix_wsproxy_base_path }}/config"
  10. matrix_mautrix_wsproxy_data_path: "{{ matrix_mautrix_wsproxy_base_path }}/data"
  11. matrix_mautrix_wsproxy_homeserver_address: "{{ matrix_homeserver_container_url }}"
  12. matrix_mautrix_wsproxy_homeserver_domain: "{{ matrix_domain }}"
  13. matrix_mautrix_wsproxy_appservice_address: "http://localhost:29331"
  14. matrix_mautrix_wsproxy_appservice_websocket: "ws://localhost:29331"
  15. # A list of extra arguments to pass to the container
  16. matrix_mautrix_wsproxy_container_extra_arguments: []
  17. # List of systemd services that matrix-mautrix-wsproxy.service depends on.
  18. matrix_mautrix_wsproxy_systemd_required_services_list: ['docker.service']
  19. # List of systemd services that matrix-mautrix-wsproxy.service wants
  20. matrix_mautrix_wsproxy_systemd_wanted_services_list: []
  21. matrix_mautrix_wsproxy_appservice_token: ''
  22. matrix_mautrix_wsproxy_homeserver_token: ''
  23. matrix_mautrix_wsproxy_appservice_bot_username: imessagebot
  24. # Default mautrix-wsproxy configuration template which covers the generic use case.
  25. # You can customize it by controlling the various variables inside it.
  26. #
  27. # For a more advanced customization, you can extend the default (see `matrix_mautrix_wsproxy_configuration_extension_yaml`)
  28. # or completely replace this variable with your own template.
  29. matrix_mautrix_wsproxy_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  30. matrix_mautrix_wsproxy_configuration_extension_yaml: |
  31. # Your custom YAML configuration goes here.
  32. # This configuration extends the default starting configuration (`matrix_mautrix_wsproxy_configuration_yaml`).
  33. #
  34. # You can override individual variables from the default configuration, or introduce new ones.
  35. #
  36. # If you need something more special, you can take full control by
  37. # completely redefining `matrix_mautrix_wsproxy_configuration_yaml`.
  38. matrix_mautrix_wsproxy_configuration_extension: "{{ matrix_mautrix_wsproxy_configuration_extension_yaml|from_yaml if matrix_mautrix_wsproxy_configuration_extension_yaml|from_yaml is mapping else {} }}"
  39. # Holds the final configuration (a combination of the default and its extension).
  40. # You most likely don't need to touch this variable. Instead, see `matrix_mautrix_wsproxy_configuration_yaml`.
  41. matrix_mautrix_wsproxy_configuration: "{{ matrix_mautrix_wsproxy_configuration_yaml|from_yaml|combine(matrix_mautrix_wsproxy_configuration_extension, recursive=True) }}"
  42. # Default mautrix-wsproxy configuration template which covers the generic use case.
  43. # You can customize it by controlling the various variables inside it.
  44. #
  45. # For a more advanced customization, you can extend the default (see `matrix_mautrix_wsproxy_configuration_extension_yaml`)
  46. # or completely replace this variable with your own template.
  47. matrix_mautrix_imessage_configuration_yaml: "{{ lookup('template', 'templates/config-ios.yaml.j2') }}"
  48. matrix_mautrix_imessage_configuration_extension_yaml: |
  49. # Your custom YAML configuration goes here.
  50. # This configuration extends the default starting configuration (`matrix_mautrix_wsproxy_configuration_yaml`).
  51. #
  52. # You can override individual variables from the default configuration, or introduce new ones.
  53. #
  54. # If you need something more special, you can take full control by
  55. # completely redefining `matrix_mautrix_imessage_configuration_yaml`.
  56. matrix_mautrix_imessage_configuration_extension: "{{ matrix_mautrix_imessage_configuration_extension_yaml|from_yaml if matrix_mautrix_imessage_configuration_extension_yaml|from_yaml is mapping else {} }}"
  57. # Holds the final configuration (a combination of the default and its extension).
  58. # You most likely don't need to touch this variable. Instead, see `matrix_mautrix_imessage_configuration_yaml`.
  59. matrix_mautrix_imessage_configuration: "{{ matrix_mautrix_imessage_configuration_yaml|from_yaml|combine(matrix_mautrix_imessage_configuration_extension, recursive=True) }}"
  60. matrix_mautrix_imessage_user: ''
  61. matrix_mautrix_wsproxy_registration_yaml: |
  62. id: imessage
  63. url: {{ matrix_mautrix_wsproxy_appservice_address }}
  64. as_token: "{{ matrix_mautrix_wsproxy_appservice_token }}"
  65. hs_token: "{{ matrix_mautrix_wsproxy_homeserver_token }}"
  66. sender_localpart: _bot_{{ matrix_mautrix_wsproxy_appservice_bot_username }}
  67. rate_limited: false
  68. namespaces:
  69. users:
  70. - regex: '@imessage_.+:{{ matrix_mautrix_wsproxy_homeserver_domain|regex_escape }}$'
  71. exclusive: true
  72. - exclusive: true
  73. regex: '^@{{ matrix_mautrix_wsproxy_appservice_bot_username|regex_escape }}:{{ matrix_mautrix_wsproxy_homeserver_domain|regex_escape }}$'
  74. matrix_mautrix_wsproxy_registration: "{{ matrix_mautrix_wsproxy_registration_yaml|from_yaml }}"