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.
 
 

74 wiersze
3.6 KiB

  1. # mautrix-wsproxy is a Matrix <-> websocket bridge
  2. # See: https://github.com/mautrix/wsproxy
  3. matrix_mautrix_wsproxy_enabled: true
  4. matrix_mautrix_wsproxy_version: latest
  5. # See: https://mau.dev/mautrix/wsproxy/container_registry
  6. matrix_mautrix_wsproxy_docker_image: "dock.mau.dev/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 }}/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_port: 29931
  14. matrix_mautrix_wsproxy_appservice_address: "http://matrix-mautrix-wsproxy:{{ matrix_mautrix_wsproxy_port }}"
  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. matrix_mautrix_wsproxy_registration_yaml: |
  43. id: imessage
  44. url: {{ matrix_mautrix_wsproxy_appservice_address }}
  45. as_token: "{{ matrix_mautrix_wsproxy_appservice_token }}"
  46. hs_token: "{{ matrix_mautrix_wsproxy_homeserver_token }}"
  47. sender_localpart: _bot_{{ matrix_mautrix_wsproxy_appservice_bot_username }}
  48. rate_limited: false
  49. namespaces:
  50. users:
  51. - regex: '@imessage_.+:{{ matrix_mautrix_wsproxy_homeserver_domain|regex_escape }}$'
  52. exclusive: true
  53. - exclusive: true
  54. regex: '^@{{ matrix_mautrix_wsproxy_appservice_bot_username|regex_escape }}:{{ matrix_mautrix_wsproxy_homeserver_domain|regex_escape }}$'
  55. matrix_mautrix_wsproxy_registration: "{{ matrix_mautrix_wsproxy_registration_yaml|from_yaml }}"