Matrix Docker Ansible eploy
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 

323 rader
20 KiB

  1. ---
  2. # Dendrite is a second-generation Matrix homeserver currently in Beta
  3. # Project source code URL: https://github.com/matrix-org/dendrite
  4. matrix_dendrite_enabled: true
  5. matrix_dendrite_hostname: ''
  6. matrix_dendrite_container_image_self_build: false
  7. matrix_dendrite_container_image_self_build_repo: "https://github.com/matrix-org/dendrite.git"
  8. matrix_dendrite_docker_image_path: "matrixdotorg/dendrite-monolith"
  9. matrix_dendrite_docker_image: "{{ matrix_dendrite_docker_image_name_prefix }}{{ matrix_dendrite_docker_image_path }}:{{ matrix_dendrite_docker_image_tag }}"
  10. matrix_dendrite_docker_image_name_prefix: "{{ 'localhost/' if matrix_dendrite_container_image_self_build else matrix_container_global_registry_prefix }}"
  11. # renovate: datasource=docker depName=matrixdotorg/dendrite-monolith
  12. matrix_dendrite_docker_image_tag: "v0.13.5"
  13. matrix_dendrite_docker_image_force_pull: "{{ matrix_dendrite_docker_image.endswith(':latest') }}"
  14. matrix_dendrite_base_path: "{{ matrix_base_data_path }}/dendrite"
  15. matrix_dendrite_config_dir_path: "{{ matrix_dendrite_base_path }}/config"
  16. matrix_dendrite_storage_path: "{{ matrix_dendrite_base_path }}/storage"
  17. matrix_dendrite_media_store_path: "{{ matrix_dendrite_storage_path }}/media-store"
  18. matrix_dendrite_nats_storage_path: "{{ matrix_dendrite_base_path }}/nats"
  19. matrix_dendrite_bin_path: "{{ matrix_dendrite_base_path }}/bin"
  20. matrix_dendrite_ext_path: "{{ matrix_dendrite_base_path }}/ext"
  21. matrix_dendrite_docker_src_files_path: "{{ matrix_dendrite_base_path }}/docker-src"
  22. # By default, we make Dendrite only serve HTTP (not HTTPS).
  23. # HTTPS is usually served at the reverse-proxy side (usually via `matrix-nginx-proxy`).
  24. #
  25. # To enable HTTPS serving by Dendrite (directly):
  26. # - `matrix_dendrite_https_bind_port` must be set
  27. # - `-tls-cert` and `-tls-key` must be passed to Dendrite via `matrix_dendrite_process_extra_arguments`
  28. # - the TLS certificate files must be mounted into the container using `matrix_dendrite_container_additional_volumes`
  29. matrix_dendrite_http_bind_port: 8008
  30. matrix_dendrite_https_bind_port: ~
  31. # This is passed as an `-http-bind-address` flag to the Dendrite server in the container
  32. matrix_dendrite_http_bind_address: "{{ (':' + matrix_dendrite_http_bind_port | string) if matrix_dendrite_http_bind_port else '' }}"
  33. # This is passed as an `-https-bind-address` flag to the Dendrite server in the container
  34. matrix_dendrite_https_bind_address: "{{ (':' + matrix_dendrite_https_bind_port | string) if matrix_dendrite_https_bind_port else '' }}"
  35. # The base container network. It will be auto-created by this role if it doesn't exist already.
  36. matrix_dendrite_container_network: ""
  37. # A list of additional container networks that the container would be connected to.
  38. # The role does not create these networks, so make sure they already exist.
  39. # Use this to expose this container to another reverse proxy, which runs in a different container network.
  40. matrix_dendrite_container_additional_networks: []
  41. # Controls whether the matrix-dendrite container exposes the HTTP port (tcp/{{ matrix_dendrite_http_bind_port }} in the container).
  42. #
  43. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8008"), or empty string to not expose.
  44. matrix_dendrite_container_http_host_bind_address: ""
  45. # Controls whether the matrix-dendrite container exposes the HTTPS port (tcp/{{ matrix_dendrite_https_bind_port }} in the container).
  46. #
  47. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8448"), or empty string to not expose.
  48. matrix_dendrite_container_https_host_bind_address: ""
  49. # matrix_dendrite_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  50. # See `../templates/labels.j2` for details.
  51. #
  52. # To inject your own other container labels, see `matrix_dendrite_container_labels_additional_labels`.
  53. matrix_dendrite_container_labels_traefik_enabled: true
  54. matrix_dendrite_container_labels_traefik_docker_network: "{{ matrix_dendrite_container_network }}"
  55. matrix_dendrite_container_labels_traefik_entrypoints: web-secure
  56. matrix_dendrite_container_labels_traefik_tls_certResolver: default # noqa var-naming
  57. # Controls whether labels will be added for handling the root (/) path
  58. matrix_dendrite_container_labels_client_root_enabled: true
  59. matrix_dendrite_container_labels_client_root_traefik_hostname: "{{ matrix_dendrite_hostname }}"
  60. matrix_dendrite_container_labels_client_root_traefik_rule: "Host(`{{ matrix_dendrite_container_labels_client_root_traefik_hostname }}`) && Path(`/`)"
  61. matrix_dendrite_container_labels_client_root_traefik_priority: 0
  62. matrix_dendrite_container_labels_client_root_traefik_entrypoints: "{{ matrix_dendrite_container_labels_traefik_entrypoints }}"
  63. matrix_dendrite_container_labels_client_root_traefik_tls: "{{ matrix_dendrite_container_labels_client_root_traefik_entrypoints != 'web' }}"
  64. matrix_dendrite_container_labels_client_root_traefik_tls_certResolver: "{{ matrix_dendrite_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  65. matrix_dendrite_container_labels_client_root_redirection_enabled: false
  66. matrix_dendrite_container_labels_client_root_redirection_url: ""
  67. # Controls whether labels will be added that expose the Client-Server API.
  68. matrix_dendrite_container_labels_client_api_enabled: true
  69. matrix_dendrite_container_labels_client_api_traefik_hostname: "{{ matrix_dendrite_hostname }}"
  70. matrix_dendrite_container_labels_client_api_traefik_path_prefix: /_matrix
  71. matrix_dendrite_container_labels_client_api_traefik_rule: "Host(`{{ matrix_dendrite_container_labels_client_api_traefik_hostname }}`) && PathPrefix(`{{ matrix_dendrite_container_labels_client_api_traefik_path_prefix }}`)"
  72. matrix_dendrite_container_labels_client_api_traefik_priority: 0
  73. matrix_dendrite_container_labels_client_api_traefik_entrypoints: "{{ matrix_dendrite_container_labels_traefik_entrypoints }}"
  74. matrix_dendrite_container_labels_client_api_traefik_tls: "{{ matrix_dendrite_container_labels_client_api_traefik_entrypoints != 'web' }}"
  75. matrix_dendrite_container_labels_client_api_traefik_tls_certResolver: "{{ matrix_dendrite_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  76. # Controls whether labels will be added that expose the /_synapse/admin paths.
  77. # Following these recommendations (https://github.com/matrix-org/synapse/blob/master/docs/reverse_proxy.md), by default, we don't.
  78. # Dendrite exposes some admin APIs under a Synapse-specific prefix.
  79. # See: https://matrix-org.github.io/dendrite/administration/adminapi
  80. matrix_dendrite_container_labels_client_synapse_admin_api_enabled: false
  81. matrix_dendrite_container_labels_client_synapse_admin_api_traefik_hostname: "{{ matrix_dendrite_hostname }}"
  82. matrix_dendrite_container_labels_client_synapse_admin_api_traefik_path_prefix: /_synapse/admin
  83. matrix_dendrite_container_labels_client_synapse_admin_api_traefik_rule: "Host(`{{ matrix_dendrite_container_labels_client_synapse_admin_api_traefik_hostname }}`) && PathPrefix(`{{ matrix_dendrite_container_labels_client_synapse_admin_api_traefik_path_prefix }}`)"
  84. matrix_dendrite_container_labels_client_synapse_admin_api_traefik_priority: 0
  85. matrix_dendrite_container_labels_client_synapse_admin_api_traefik_entrypoints: "{{ matrix_dendrite_container_labels_traefik_entrypoints }}"
  86. matrix_dendrite_container_labels_client_synapse_admin_api_traefik_tls: "{{ matrix_dendrite_container_labels_client_synapse_admin_api_traefik_entrypoints != 'web' }}"
  87. matrix_dendrite_container_labels_client_synapse_admin_api_traefik_tls_certResolver: "{{ matrix_dendrite_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  88. # Controls whether labels will be added that expose the /_dendrite/admin paths.
  89. # See: https://matrix-org.github.io/dendrite/administration/adminapi
  90. matrix_dendrite_container_labels_client_dendrite_admin_api_enabled: false
  91. matrix_dendrite_container_labels_client_dendrite_admin_api_traefik_hostname: "{{ matrix_dendrite_hostname }}"
  92. matrix_dendrite_container_labels_client_dendrite_admin_api_traefik_path_prefix: /_dendrite/admin
  93. matrix_dendrite_container_labels_client_dendrite_admin_api_traefik_rule: "Host(`{{ matrix_dendrite_container_labels_client_dendrite_admin_api_traefik_hostname }}`) && PathPrefix(`{{ matrix_dendrite_container_labels_client_dendrite_admin_api_traefik_path_prefix }}`)"
  94. matrix_dendrite_container_labels_client_dendrite_admin_api_traefik_priority: 0
  95. matrix_dendrite_container_labels_client_dendrite_admin_api_traefik_entrypoints: "{{ matrix_dendrite_container_labels_traefik_entrypoints }}"
  96. matrix_dendrite_container_labels_client_dendrite_admin_api_traefik_tls: "{{ matrix_dendrite_container_labels_client_dendrite_admin_api_traefik_entrypoints != 'web' }}"
  97. matrix_dendrite_container_labels_client_dendrite_admin_api_traefik_tls_certResolver: "{{ matrix_dendrite_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  98. # Controls whether labels will be added that expose the Server-Server API (Federation API).
  99. matrix_dendrite_container_labels_federation_api_enabled: "{{ matrix_dendrite_federation_enabled }}"
  100. matrix_dendrite_container_labels_federation_api_traefik_hostname: "{{ matrix_dendrite_hostname }}"
  101. matrix_dendrite_container_labels_federation_api_traefik_path_prefix: /_matrix
  102. matrix_dendrite_container_labels_federation_api_traefik_rule: "Host(`{{ matrix_dendrite_container_labels_federation_api_traefik_hostname }}`) && PathPrefix(`{{ matrix_dendrite_container_labels_federation_api_traefik_path_prefix }}`)"
  103. matrix_dendrite_container_labels_federation_api_traefik_priority: 0
  104. matrix_dendrite_container_labels_federation_api_traefik_entrypoints: ''
  105. matrix_dendrite_container_labels_federation_api_traefik_tls: "{{ matrix_dendrite_container_labels_federation_api_traefik_entrypoints != 'web' }}"
  106. matrix_dendrite_container_labels_federation_api_traefik_tls_certResolver: "{{ matrix_dendrite_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  107. # Controls whether labels will be added that expose mautrix-facebook's metrics
  108. matrix_dendrite_container_labels_metrics_enabled: "{{ matrix_dendrite_metrics_enabled and matrix_dendrite_metrics_proxying_enabled }}"
  109. matrix_dendrite_container_labels_metrics_traefik_rule: "Host(`{{ matrix_dendrite_metrics_proxying_hostname }}`) && PathPrefix(`{{ matrix_dendrite_metrics_proxying_path_prefix }}`)"
  110. matrix_dendrite_container_labels_metrics_traefik_priority: 0
  111. matrix_dendrite_container_labels_metrics_traefik_entrypoints: "{{ matrix_dendrite_container_labels_traefik_entrypoints }}"
  112. matrix_dendrite_container_labels_metrics_traefik_tls: "{{ matrix_dendrite_container_labels_metrics_traefik_entrypoints != 'web' }}"
  113. matrix_dendrite_container_labels_metrics_traefik_tls_certResolver: "{{ matrix_dendrite_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  114. matrix_dendrite_container_labels_metrics_middleware_basic_auth_enabled: false
  115. # See: https://doc.traefik.io/traefik/middlewares/http/basicauth/#users
  116. matrix_dendrite_container_labels_metrics_middleware_basic_auth_users: ''
  117. # matrix_dendrite_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  118. # See `../templates/labels.j2` for details.
  119. #
  120. # Example:
  121. # matrix_dendrite_container_labels_additional_labels: |
  122. # my.label=1
  123. # another.label="here"
  124. matrix_dendrite_container_labels_additional_labels: ''
  125. # A list of extra arguments to pass to the container (`docker run` command)
  126. # Also see `matrix_dendrite_container_arguments`
  127. matrix_dendrite_container_extra_arguments: []
  128. # matrix_dendrite_container_extra_arguments_auto is a list of extra arguments to pass to the container.
  129. # This list is managed by the playbook. You're not meant to override this variable.
  130. # If you'd like to inject your own arguments, see `matrix_dendrite_container_extra_arguments`.
  131. matrix_dendrite_container_extra_arguments_auto: []
  132. # matrix_dendrite_container_arguments holds the final list of extra arguments to pass to the container.
  133. # You're not meant to override this variable.
  134. # If you'd like to inject your own arguments, see `matrix_dendrite_container_extra_arguments`.
  135. matrix_dendrite_container_arguments: "{{ matrix_dendrite_container_extra_arguments + matrix_dendrite_container_extra_arguments_auto }}"
  136. # A list of extra arguments to pass to the container process (`dendrite-monolith` command)
  137. # Example:
  138. # matrix_dendrite_process_extra_arguments:
  139. # - "-tls-cert /some/path.crt"
  140. # - "-tls-key /some/path.pem"
  141. matrix_dendrite_process_extra_arguments: []
  142. # List of systemd services that matrix-dendrite.service depends on
  143. matrix_dendrite_systemd_required_services_list: "{{ matrix_dendrite_systemd_required_services_list_default + matrix_dendrite_systemd_required_services_list_auto + matrix_dendrite_systemd_required_services_list_custom }}"
  144. matrix_dendrite_systemd_required_services_list_default: ["docker.service"]
  145. matrix_dendrite_systemd_required_services_list_auto: []
  146. matrix_dendrite_systemd_required_services_list_custom: []
  147. # List of systemd services that matrix-dendrite.service wants
  148. matrix_dendrite_systemd_wanted_services_list: "{{ matrix_dendrite_systemd_wanted_services_list_default + matrix_dendrite_systemd_wanted_services_list_auto + matrix_dendrite_systemd_wanted_services_list_custom }}"
  149. matrix_dendrite_systemd_wanted_services_list_default: ["docker.service"]
  150. matrix_dendrite_systemd_wanted_services_list_auto: []
  151. matrix_dendrite_systemd_wanted_services_list_custom: []
  152. # Specifies which template files to use when configuring Dendrite.
  153. # If you'd like to have your own different configuration, feel free to copy and paste
  154. # the original files into your inventory (e.g. in `inventory/host_vars/<host>/`)
  155. # and then change the specific host's `vars.yml` file like this:
  156. # matrix_dendrite_template_dendrite_config: "{{ playbook_dir }}/inventory/host_vars/<host>/dendrite.yaml.j2"
  157. matrix_dendrite_template_dendrite_config: "{{ role_path }}/templates/dendrite.yaml.j2"
  158. matrix_dendrite_client_api_registration_shared_secret: ""
  159. matrix_dendrite_allow_guest_access: false
  160. matrix_dendrite_max_file_size_bytes: 10485760
  161. # Controls which HTTP header (e.g. 'X-Forwarded-For', 'X-Real-IP') to inspect to find the real remote IP address of the client.
  162. # This is likely required if Dendrite is running behind a reverse proxy server.
  163. matrix_dendrite_sync_api_real_ip_header: "X-Forwarded-For"
  164. # The tmpfs at /tmp needs to be large enough to handle multiple concurrent file uploads.
  165. matrix_dendrite_tmp_directory_size_mb: 500
  166. # Rate limits
  167. matrix_dendrite_client_api_rate_limiting_enabled: true
  168. matrix_dendrite_client_api_rate_limiting_threshold: 20
  169. matrix_dendrite_client_api_rate_limiting_cooloff_ms: 500
  170. # Controls whether people with access to the homeserver can register by themselves.
  171. matrix_dendrite_client_api_registration_disabled: true
  172. # reCAPTCHA API for validating registration attempts
  173. matrix_dendrite_client_api_enable_registration_captcha: false
  174. matrix_dendrite_client_api_recaptcha_public_key: ""
  175. matrix_dendrite_client_api_recaptcha_private_key: ""
  176. matrix_dendrite_client_api_recaptcha_siteverify_api: ""
  177. matrix_dendrite_client_api_recaptcha_api_js_url: ""
  178. matrix_dendrite_client_api_recaptcha_form_field: ""
  179. matrix_dendrite_client_api_recaptcha_sitekey_class: ""
  180. # A list of additional "volumes" to mount in the container.
  181. # This list gets populated dynamically based on Dendrite extensions that have been enabled.
  182. # Contains definition objects like this: `{"src": "/outside", "dst": "/inside", "options": "ro"}
  183. # Note: internally, this uses the `--mount` flag for mounting the specified volumes.
  184. matrix_dendrite_container_additional_volumes: []
  185. # A list of appservice config files (in-container filesystem paths).
  186. # This list gets populated dynamically based on Dendrite extensions that have been enabled.
  187. # You may wish to use this together with `matrix_dendrite_container_additional_volumes` or `matrix_dendrite_container_extra_arguments`.
  188. # Also see `matrix_dendrite_app_service_config_files_final`
  189. matrix_dendrite_app_service_config_files: []
  190. # matrix_dendrite_app_service_config_files_auto is a list of appservice config files.
  191. # This list is managed by the playbook. You're not meant to override this variable.
  192. # If you'd like to inject your own arguments, see `matrix_dendrite_app_service_config_files`.
  193. matrix_dendrite_app_service_config_files_auto: []
  194. # matrix_dendrite_app_service_config_files_final holds the final list of config files to pass to the container.
  195. # You're not meant to override this variable.
  196. # If you'd like to inject your own arguments, see `matrix_dendrite_app_service_config_files`.
  197. matrix_dendrite_app_service_config_files_final: "{{ matrix_dendrite_app_service_config_files + matrix_dendrite_app_service_config_files_auto }}"
  198. # Enable exposure of metrics
  199. matrix_dendrite_metrics_enabled: false
  200. matrix_dendrite_metrics_username: ""
  201. matrix_dendrite_metrics_password: ""
  202. # Controls whether metrics should be exposed on a public URL.
  203. matrix_dendrite_metrics_proxying_enabled: false
  204. matrix_dendrite_metrics_proxying_hostname: "{{ matrix_dendrite_hostname }}"
  205. matrix_dendrite_metrics_proxying_path_prefix: /metrics/dendrite
  206. # Postgres database information
  207. matrix_dendrite_database_str: "postgresql://{{ matrix_dendrite_database_user }}:{{ matrix_dendrite_database_password }}@{{ matrix_dendrite_database_hostname }}"
  208. matrix_dendrite_database_hostname: ""
  209. matrix_dendrite_database_user: "dendrite"
  210. matrix_dendrite_database_password: "itsasecret"
  211. matrix_dendrite_database_sslmode: disable
  212. matrix_dendrite_federation_api_database: "dendrite_federationapi"
  213. matrix_dendrite_key_server_database: "dendrite_keyserver"
  214. matrix_dendrite_media_api_database: "dendrite_mediaapi"
  215. matrix_dendrite_room_database: "dendrite_room"
  216. matrix_dendrite_sync_api_database: "dendrite_syncapi"
  217. matrix_dendrite_user_api_database: "dendrite_userapi"
  218. matrix_dendrite_push_server_database: "dendrite_pushserver"
  219. matrix_dendrite_relay_api_database: "dendrite_relayapi"
  220. matrix_dendrite_mscs_database: "dendrite_mscs"
  221. matrix_dendrite_client_api_turn_uris: []
  222. matrix_dendrite_client_api_turn_shared_secret: ""
  223. matrix_dendrite_client_api_turn_allow_guests: false
  224. matrix_dendrite_disable_tls_validation: false
  225. matrix_dendrite_trusted_id_servers:
  226. - "matrix.org"
  227. - "vector.im"
  228. # Controls whether Dendrite will federate at all.
  229. # Disable this to completely isolate your server from the rest of the Matrix network.
  230. matrix_dendrite_federation_enabled: true
  231. # Controls whether the self-check feature should validate SSL certificates.
  232. matrix_dendrite_self_check_validate_certificates: true
  233. # Default Dendrite configuration template which covers the generic use case.
  234. # You can customize it by controlling the various variables inside it.
  235. #
  236. # For a more advanced customization, you can extend the default (see `matrix_dendrite_configuration_extension_yaml`)
  237. # or completely replace this variable with your own template.
  238. matrix_dendrite_configuration_yaml: "{{ lookup('template', matrix_dendrite_template_dendrite_config) }}"
  239. matrix_dendrite_configuration_extension_yaml: |
  240. # Your custom YAML configuration for Dendrite goes here.
  241. # This configuration extends the default starting configuration (`matrix_dendrite_configuration_yaml`).
  242. #
  243. # You can override individual variables from the default configuration, or introduce new ones.
  244. #
  245. # If you need something more special, you can take full control by
  246. # completely redefining `matrix_dendrite_configuration_yaml`.
  247. #
  248. # Example configuration extension follows:
  249. #
  250. # server_notices:
  251. # system_mxid_localpart: notices
  252. # system_mxid_display_name: "Server Notices"
  253. # system_mxid_avatar_url: "mxc://server.com/oumMVlgDnLYFaPVkExemNVVZ"
  254. # room_name: "Server Notices"
  255. matrix_dendrite_configuration_extension: "{{ matrix_dendrite_configuration_extension_yaml | from_yaml if matrix_dendrite_configuration_extension_yaml | from_yaml is mapping else {} }}"
  256. # Holds the final Dendrite configuration (a combination of the default and its extension).
  257. # You most likely don't need to touch this variable. Instead, see `matrix_dendrite_configuration_yaml`.
  258. matrix_dendrite_configuration: "{{ matrix_dendrite_configuration_yaml | from_yaml | combine(matrix_dendrite_configuration_extension, recursive=True) }}"
  259. matrix_dendrite_user_api_auto_join_rooms: []
  260. # statistics reporting configuration. These statistics contain the server
  261. # name, number of active users and some information on your deployment config.
  262. matrix_dendrite_report_stats: false
  263. # Contorls whether thumbnails for media content are generated dynamically
  264. matrix_dendrite_media_api_dynamic_thumbnails: false
  265. matrix_dendrite_media_api_max_thumbnail_generators: 10
  266. # Controls whether the full-text search engine is enabled
  267. matrix_dendrite_sync_api_search_enabled: false