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.
 
 

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