Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

75 righe
3.7 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. # appservice -> id from the config
  42. id: wsproxy
  43. # appservice -> as_token and hs_token from the config
  44. as_token: random string
  45. hs_token: random string
  46. namespaces:
  47. users:
  48. # The localpart here is username_template from the config, but .+ instead of {{.}}
  49. - regex: '@imessage_.+:{{ matrix_mautrix_telegram_homeserver_domain|regex_escape }}$'
  50. exclusive: true
  51. # Localpart here is appservice -> bot -> username from the config
  52. - regex: '@imessagebot:{{ matrix_mautrix_telegram_homeserver_domain|regex_escape }}$'
  53. exclusive: true
  54. # Address that Synapse uses to contact mautrix-wsproxy
  55. url: {{ matrix_mautrix_wsproxy_appservice_address }}
  56. # Put a new random string here, it doesn't affect anything else
  57. sender_localpart: random string
  58. rate_limited: false
  59. matrix_mautrix_wsproxy_registration: "{{ matrix_mautrix_wsproxy_registration_yaml|from_yaml }}"