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

174 строки
9.9 KiB

  1. ---
  2. # mautrix-wsproxy is a Matrix <-> websocket bridge
  3. # See: https://github.com/mautrix/wsproxy
  4. matrix_mautrix_wsproxy_enabled: true
  5. matrix_mautrix_wsproxy_version: latest
  6. # See: https://mau.dev/mautrix/wsproxy/container_registry
  7. matrix_mautrix_wsproxy_docker_image: "{{ matrix_mautrix_wsproxy_docker_image_registry_prefix }}mautrix/wsproxy:{{ matrix_mautrix_wsproxy_version }}"
  8. matrix_mautrix_wsproxy_docker_image_registry_prefix: "{{ matrix_mautrix_wsproxy_docker_image_registry_prefix_upstream }}"
  9. matrix_mautrix_wsproxy_docker_image_registry_prefix_upstream: "{{ matrix_mautrix_wsproxy_docker_image_registry_prefix_upstream_default }}"
  10. matrix_mautrix_wsproxy_docker_image_registry_prefix_upstream_default: "dock.mau.dev/"
  11. matrix_mautrix_wsproxy_docker_image_force_pull: "{{ matrix_mautrix_wsproxy_docker_image.endswith(':latest') }}"
  12. matrix_mautrix_wsproxy_base_path: "{{ matrix_base_data_path }}/wsproxy"
  13. matrix_mautrix_wsproxy_config_path: "{{ matrix_mautrix_wsproxy_base_path }}/config"
  14. matrix_mautrix_wsproxy_homeserver_address: ""
  15. matrix_mautrix_wsproxy_homeserver_domain: "{{ matrix_domain }}"
  16. matrix_mautrix_wsproxy_bind_port: false
  17. matrix_mautrix_wsproxy_port: 29331
  18. matrix_mautrix_wsproxy_appservice_address: "http://matrix-mautrix-wsproxy:{{ matrix_mautrix_wsproxy_port }}"
  19. matrix_mautrix_wsproxy_hostname: ""
  20. # The base container network. It will be auto-created by this role if it doesn't exist already.
  21. matrix_mautrix_wsproxy_container_network: matrix-mautrix-wsproxy
  22. matrix_mautrix_wsproxy_twitter_container_additional_networks: "{{ matrix_mautrix_wsproxy_twitter_container_additional_networks_auto + matrix_mautrix_wsproxy_twitter_container_additional_networks_custom }}"
  23. matrix_mautrix_wsproxy_twitter_container_additional_networks_auto: []
  24. matrix_mautrix_wsproxy_twitter_container_additional_networks_custom: []
  25. # matrix_mautrix_wsproxy_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  26. # See `../templates/labels.j2` for details.
  27. #
  28. # To inject your own other container labels, see `matrix_mautrix_wsproxy_container_labels_additional_labels`.
  29. matrix_mautrix_wsproxy_container_labels_traefik_enabled: true
  30. matrix_mautrix_wsproxy_container_labels_traefik_docker_network: "{{ matrix_mautrix_wsproxy_container_network }}"
  31. matrix_mautrix_wsproxy_container_labels_traefik_hostname: "{{ matrix_mautrix_wsproxy_hostname }}"
  32. # The path prefix must either be `/` or not end with a slash (e.g. `/wsproxy`).
  33. matrix_mautrix_wsproxy_container_labels_traefik_rule: "Host(`{{ matrix_mautrix_wsproxy_container_labels_traefik_hostname }}`)"
  34. matrix_mautrix_wsproxy_container_labels_traefik_priority: 0
  35. matrix_mautrix_wsproxy_container_labels_traefik_entrypoints: web-secure
  36. matrix_mautrix_wsproxy_container_labels_traefik_tls: "{{ matrix_mautrix_wsproxy_container_labels_traefik_entrypoints != 'web' }}"
  37. matrix_mautrix_wsproxy_container_labels_traefik_tls_certResolver: default # noqa var-naming
  38. # Controls which additional headers to attach to all HTTP responses.
  39. # To add your own headers, use `matrix_mautrix_wsproxy_container_labels_traefik_additional_response_headers_custom`
  40. matrix_mautrix_wsproxy_container_labels_traefik_additional_response_headers_auto: {}
  41. matrix_mautrix_wsproxy_container_labels_traefik_additional_response_headers_custom: {}
  42. matrix_mautrix_wsproxy_container_labels_traefik_additional_response_headers: "{{ matrix_mautrix_wsproxy_container_labels_traefik_additional_response_headers_auto | combine(matrix_mautrix_wsproxy_container_labels_traefik_additional_response_headers_custom) }}"
  43. # matrix_mautrix_wsproxy_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  44. # See `../templates/labels.j2` for details.
  45. #
  46. # Example:
  47. # matrix_mautrix_wsproxy_container_labels_additional_labels: |
  48. # my.label=1
  49. # another.label="here"
  50. matrix_mautrix_wsproxy_container_labels_additional_labels: ''
  51. # A list of extra arguments to pass to the container
  52. matrix_mautrix_wsproxy_container_extra_arguments: []
  53. # List of systemd services that matrix-mautrix-wsproxy.service depends on.
  54. matrix_mautrix_wsproxy_systemd_required_services_list: "{{ matrix_mautrix_wsproxy_systemd_required_services_list_default + matrix_mautrix_wsproxy_systemd_required_services_list_auto + matrix_mautrix_wsproxy_systemd_required_services_list_custom }}"
  55. matrix_mautrix_wsproxy_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  56. matrix_mautrix_wsproxy_systemd_required_services_list_auto: []
  57. matrix_mautrix_wsproxy_systemd_required_services_list_custom: []
  58. # List of systemd services that matrix-mautrix-wsproxy.service wants
  59. matrix_mautrix_wsproxy_systemd_wanted_services_list: []
  60. matrix_mautrix_androidsms_appservice_token: ''
  61. matrix_mautrix_androidsms_homeserver_token: ''
  62. matrix_mautrix_imessage_appservice_token: ''
  63. matrix_mautrix_imessage_homeserver_token: ''
  64. matrix_mautrix_androidsms_appservice_bot_username: androidsmsbot
  65. matrix_mautrix_imessage_appservice_bot_username: imessagebot
  66. # Default mautrix-wsproxy configuration template which covers the generic use case.
  67. # You can customize it by controlling the various variables inside it.
  68. #
  69. # For a more advanced customization, you can extend the default (see `matrix_mautrix_wsproxy_configuration_extension_yaml`)
  70. # or completely replace this variable with your own template.
  71. matrix_mautrix_wsproxy_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  72. matrix_mautrix_wsproxy_configuration_extension_yaml: |
  73. # Your custom YAML configuration goes here.
  74. # This configuration extends the default starting configuration (`matrix_mautrix_wsproxy_configuration_yaml`).
  75. #
  76. # You can override individual variables from the default configuration, or introduce new ones.
  77. #
  78. # If you need something more special, you can take full control by
  79. # completely redefining `matrix_mautrix_wsproxy_configuration_yaml`.
  80. 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 {} }}"
  81. # Holds the final configuration (a combination of the default and its extension).
  82. # You most likely don't need to touch this variable. Instead, see `matrix_mautrix_wsproxy_configuration_yaml`.
  83. matrix_mautrix_wsproxy_configuration: "{{ matrix_mautrix_wsproxy_configuration_yaml | from_yaml | combine(matrix_mautrix_wsproxy_configuration_extension, recursive=True) }}"
  84. matrix_mautrix_androidsms_registration_yaml: |
  85. id: androidsms
  86. url: {{ matrix_mautrix_wsproxy_appservice_address }}
  87. as_token: "{{ matrix_mautrix_androidsms_appservice_token }}"
  88. hs_token: "{{ matrix_mautrix_androidsms_homeserver_token }}"
  89. sender_localpart: _bot_{{ matrix_mautrix_androidsms_appservice_bot_username }}
  90. rate_limited: false
  91. namespaces:
  92. users:
  93. - regex: '@androidsms_.+:{{ matrix_mautrix_wsproxy_homeserver_domain | regex_escape }}$'
  94. exclusive: true
  95. - exclusive: true
  96. regex: '^@{{ matrix_mautrix_androidsms_appservice_bot_username | regex_escape }}:{{ matrix_mautrix_wsproxy_homeserver_domain | regex_escape }}$'
  97. matrix_mautrix_androidsms_registration: "{{ matrix_mautrix_androidsms_registration_yaml | from_yaml }}"
  98. matrix_mautrix_imessage_registration_yaml: |
  99. id: imessage
  100. url: {{ matrix_mautrix_wsproxy_appservice_address }}
  101. as_token: "{{ matrix_mautrix_imessage_appservice_token }}"
  102. hs_token: "{{ matrix_mautrix_imessage_homeserver_token }}"
  103. sender_localpart: _bot_{{ matrix_mautrix_imessage_appservice_bot_username }}
  104. rate_limited: false
  105. namespaces:
  106. users:
  107. - regex: '@imessage_.+:{{ matrix_mautrix_wsproxy_homeserver_domain | regex_escape }}$'
  108. exclusive: true
  109. - exclusive: true
  110. regex: '^@{{ matrix_mautrix_imessage_appservice_bot_username | regex_escape }}:{{ matrix_mautrix_wsproxy_homeserver_domain | regex_escape }}$'
  111. matrix_mautrix_imessage_registration: "{{ matrix_mautrix_imessage_registration_yaml | from_yaml }}"
  112. # Syncproxy-related configuration fields
  113. # renovate: datasource=docker depName=dock.mau.dev/mautrix/syncproxy
  114. matrix_mautrix_wsproxy_syncproxy_version: latest
  115. # See: https://mau.dev/mautrix/wsproxy/container_registry
  116. matrix_mautrix_wsproxy_syncproxy_docker_image: "dock.mau.dev/mautrix/syncproxy:{{ matrix_mautrix_wsproxy_syncproxy_version }}"
  117. matrix_mautrix_wsproxy_syncproxy_docker_image_force_pull: "{{ matrix_mautrix_wsproxy_syncproxy_docker_image.endswith(':latest') }}"
  118. matrix_mautrix_wsproxy_syncproxy_container_extra_arguments: []
  119. matrix_mautrix_wsproxy_syncproxy_systemd_required_services_list: |-
  120. {{
  121. ([devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [])
  122. +
  123. ['matrix-mautrix-wsproxy.service']
  124. }}
  125. matrix_mautrix_wsproxy_syncproxy_systemd_wanted_services_list: []
  126. matrix_mautrix_wsproxy_syncproxy_homeserver_url: ''
  127. matrix_mautrix_wsproxy_syncproxy_shared_secret: ''
  128. matrix_mautrix_wsproxy_syncproxy_port: 29332
  129. matrix_mautrix_wsproxy_syncproxy_appservice_address: "http://matrix-mautrix-wsproxy-syncproxy:{{ matrix_mautrix_wsproxy_syncproxy_port }}"
  130. # Database-related configuration fields
  131. #
  132. # This bridge supports Postgres and SQLite.
  133. #
  134. matrix_mautrix_wsproxy_syncproxy_database_engine: 'postgres'
  135. matrix_mautrix_wsproxy_syncproxy_database_username: 'matrix_mautrix_wsproxy_syncproxy'
  136. matrix_mautrix_wsproxy_syncproxy_database_password: ''
  137. matrix_mautrix_wsproxy_syncproxy_database_hostname: ''
  138. matrix_mautrix_wsproxy_syncproxy_database_port: 5432
  139. matrix_mautrix_wsproxy_syncproxy_database_name: 'matrix_mautrix_wsproxy_syncproxy'
  140. matrix_mautrix_signal_wsproxy_syncproxy_connection_string: 'postgres://{{ matrix_mautrix_wsproxy_syncproxy_database_username }}:{{ matrix_mautrix_wsproxy_syncproxy_database_password }}@{{ matrix_mautrix_wsproxy_syncproxy_database_hostname }}:{{ matrix_mautrix_wsproxy_syncproxy_database_port }}/{{ matrix_mautrix_wsproxy_syncproxy_database_name }}'