Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

71 строка
3.6 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_homeserver_address: "{{ matrix_homeserver_container_url }}"
  11. matrix_mautrix_wsproxy_homeserver_domain: "{{ matrix_domain }}"
  12. matrix_mautrix_wsproxy_appservice_address: "http://matrix-mautrix-wsproxy:8080"
  13. # A list of extra arguments to pass to the container
  14. matrix_mautrix_wsproxy_container_extra_arguments: []
  15. # List of systemd services that matrix-mautrix-wsproxy.service depends on.
  16. matrix_mautrix_wsproxy_systemd_required_services_list: ['docker.service']
  17. # List of systemd services that matrix-mautrix-wsproxy.service wants
  18. matrix_mautrix_wsproxy_systemd_wanted_services_list: []
  19. matrix_mautrix_wsproxy_appservice_token: ''
  20. matrix_mautrix_wsproxy_homeserver_token: ''
  21. matrix_mautrix_wsproxy_appservice_bot_username: wsproxy
  22. # Default mautrix-wsproxy configuration template which covers the generic use case.
  23. # You can customize it by controlling the various variables inside it.
  24. #
  25. # For a more advanced customization, you can extend the default (see `matrix_mautrix_wsproxy_configuration_extension_yaml`)
  26. # or completely replace this variable with your own template.
  27. matrix_mautrix_wsproxy_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  28. matrix_mautrix_wsproxy_configuration_extension_yaml: |
  29. # Your custom YAML configuration goes here.
  30. # This configuration extends the default starting configuration (`matrix_mautrix_wsproxy_configuration_yaml`).
  31. #
  32. # You can override individual variables from the default configuration, or introduce new ones.
  33. #
  34. # If you need something more special, you can take full control by
  35. # completely redefining `matrix_mautrix_wsproxy_configuration_yaml`.
  36. 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 {} }}"
  37. # Holds the final configuration (a combination of the default and its extension).
  38. # You most likely don't need to touch this variable. Instead, see `matrix_mautrix_wsproxy_configuration_yaml`.
  39. matrix_mautrix_wsproxy_configuration: "{{ matrix_mautrix_wsproxy_configuration_yaml|from_yaml|combine(matrix_mautrix_wsproxy_configuration_extension, recursive=True) }}"
  40. matrix_mautrix_wsproxy_registration_yaml: |
  41. id: wsproxy
  42. url: {{ matrix_mautrix_wsproxy_appservice_address }}
  43. as_token: "{{ matrix_mautrix_wsproxy_appservice_token }}"
  44. hs_token: "{{ matrix_mautrix_wsproxy_homeserver_token }}"
  45. # See https://github.com/tulir/mautrix-signal/issues/43
  46. sender_localpart: _bot_{{ matrix_mautrix_wsproxy_appservice_bot_username }}
  47. rate_limited: false
  48. namespaces:
  49. users:
  50. - regex: '^@wsproxy_[0-9]+:{{ matrix_mautrix_wsproxy_homeserver_domain|regex_escape }}$'
  51. exclusive: true
  52. - exclusive: true
  53. regex: '^@{{ matrix_mautrix_wsproxy_appservice_bot_username|regex_escape }}:{{ matrix_mautrix_wsproxy_homeserver_domain|regex_escape }}$'
  54. de.sorunome.msc2409.push_ephemeral: true
  55. matrix_mautrix_wsproxy_registration: "{{ matrix_mautrix_wsproxy_registration_yaml|from_yaml }}"