Matrix Docker Ansible eploy
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

311 satır
19 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. # matrix_dendrite_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  108. # See `../templates/labels.j2` for details.
  109. #
  110. # Example:
  111. # matrix_dendrite_container_labels_additional_labels: |
  112. # my.label=1
  113. # another.label="here"
  114. matrix_dendrite_container_labels_additional_labels: ''
  115. # A list of extra arguments to pass to the container (`docker run` command)
  116. # Also see `matrix_dendrite_container_arguments`
  117. matrix_dendrite_container_extra_arguments: []
  118. # matrix_dendrite_container_extra_arguments_auto is a list of extra arguments to pass to the container.
  119. # This list is managed by the playbook. You're not meant to override this variable.
  120. # If you'd like to inject your own arguments, see `matrix_dendrite_container_extra_arguments`.
  121. matrix_dendrite_container_extra_arguments_auto: []
  122. # matrix_dendrite_container_arguments holds the final list of extra arguments to pass to the container.
  123. # You're not meant to override this variable.
  124. # If you'd like to inject your own arguments, see `matrix_dendrite_container_extra_arguments`.
  125. matrix_dendrite_container_arguments: "{{ matrix_dendrite_container_extra_arguments + matrix_dendrite_container_extra_arguments_auto }}"
  126. # A list of extra arguments to pass to the container process (`dendrite-monolith` command)
  127. # Example:
  128. # matrix_dendrite_process_extra_arguments:
  129. # - "-tls-cert /some/path.crt"
  130. # - "-tls-key /some/path.pem"
  131. matrix_dendrite_process_extra_arguments: []
  132. # List of systemd services that matrix-dendrite.service depends on
  133. 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 }}"
  134. matrix_dendrite_systemd_required_services_list_default: ["docker.service"]
  135. matrix_dendrite_systemd_required_services_list_auto: []
  136. matrix_dendrite_systemd_required_services_list_custom: []
  137. # List of systemd services that matrix-dendrite.service wants
  138. 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 }}"
  139. matrix_dendrite_systemd_wanted_services_list_default: ["docker.service"]
  140. matrix_dendrite_systemd_wanted_services_list_auto: []
  141. matrix_dendrite_systemd_wanted_services_list_custom: []
  142. # Specifies which template files to use when configuring Dendrite.
  143. # If you'd like to have your own different configuration, feel free to copy and paste
  144. # the original files into your inventory (e.g. in `inventory/host_vars/<host>/`)
  145. # and then change the specific host's `vars.yml` file like this:
  146. # matrix_dendrite_template_dendrite_config: "{{ playbook_dir }}/inventory/host_vars/<host>/dendrite.yaml.j2"
  147. matrix_dendrite_template_dendrite_config: "{{ role_path }}/templates/dendrite.yaml.j2"
  148. matrix_dendrite_client_api_registration_shared_secret: ""
  149. matrix_dendrite_allow_guest_access: false
  150. matrix_dendrite_max_file_size_bytes: 10485760
  151. # Controls which HTTP header (e.g. 'X-Forwarded-For', 'X-Real-IP') to inspect to find the real remote IP address of the client.
  152. # This is likely required if Dendrite is running behind a reverse proxy server.
  153. matrix_dendrite_sync_api_real_ip_header: "X-Forwarded-For"
  154. # The tmpfs at /tmp needs to be large enough to handle multiple concurrent file uploads.
  155. matrix_dendrite_tmp_directory_size_mb: 500
  156. # Rate limits
  157. matrix_dendrite_client_api_rate_limiting_enabled: true
  158. matrix_dendrite_client_api_rate_limiting_threshold: 20
  159. matrix_dendrite_client_api_rate_limiting_cooloff_ms: 500
  160. # Controls whether people with access to the homeserver can register by themselves.
  161. matrix_dendrite_client_api_registration_disabled: true
  162. # reCAPTCHA API for validating registration attempts
  163. matrix_dendrite_client_api_enable_registration_captcha: false
  164. matrix_dendrite_client_api_recaptcha_public_key: ""
  165. matrix_dendrite_client_api_recaptcha_private_key: ""
  166. matrix_dendrite_client_api_recaptcha_siteverify_api: ""
  167. matrix_dendrite_client_api_recaptcha_api_js_url: ""
  168. matrix_dendrite_client_api_recaptcha_form_field: ""
  169. matrix_dendrite_client_api_recaptcha_sitekey_class: ""
  170. # A list of additional "volumes" to mount in the container.
  171. # This list gets populated dynamically based on Dendrite extensions that have been enabled.
  172. # Contains definition objects like this: `{"src": "/outside", "dst": "/inside", "options": "rw|ro|slave|.."}
  173. #
  174. # Note: internally, this uses the `-v` flag for mounting the specified volumes.
  175. # It's better (safer) to use the `--mount` flag for mounting volumes.
  176. # To use `--mount`, specify it in `matrix_dendrite_container_extra_arguments`.
  177. # Example: `matrix_dendrite_container_extra_arguments: ['--mount type=bind,src=/outside,dst=/inside,ro']
  178. matrix_dendrite_container_additional_volumes: []
  179. # A list of appservice config files (in-container filesystem paths).
  180. # This list gets populated dynamically based on Dendrite extensions that have been enabled.
  181. # You may wish to use this together with `matrix_dendrite_container_additional_volumes` or `matrix_dendrite_container_extra_arguments`.
  182. # Also see `matrix_dendrite_app_service_config_files_final`
  183. matrix_dendrite_app_service_config_files: []
  184. # matrix_dendrite_app_service_config_files_auto is a list of appservice config files.
  185. # This list is managed by the playbook. You're not meant to override this variable.
  186. # If you'd like to inject your own arguments, see `matrix_dendrite_app_service_config_files`.
  187. matrix_dendrite_app_service_config_files_auto: []
  188. # matrix_dendrite_app_service_config_files_final holds the final list of config files to pass to the container.
  189. # You're not meant to override this variable.
  190. # If you'd like to inject your own arguments, see `matrix_dendrite_app_service_config_files`.
  191. matrix_dendrite_app_service_config_files_final: "{{ matrix_dendrite_app_service_config_files + matrix_dendrite_app_service_config_files_auto }}"
  192. # Enable exposure of metrics
  193. matrix_dendrite_metrics_enabled: false
  194. matrix_dendrite_metrics_username: "metrics"
  195. matrix_dendrite_metrics_password: "metrics"
  196. # Postgres database information
  197. matrix_dendrite_database_str: "postgresql://{{ matrix_dendrite_database_user }}:{{ matrix_dendrite_database_password }}@{{ matrix_dendrite_database_hostname }}"
  198. matrix_dendrite_database_hostname: ""
  199. matrix_dendrite_database_user: "dendrite"
  200. matrix_dendrite_database_password: "itsasecret"
  201. matrix_dendrite_database_sslmode: disable
  202. matrix_dendrite_federation_api_database: "dendrite_federationapi"
  203. matrix_dendrite_key_server_database: "dendrite_keyserver"
  204. matrix_dendrite_media_api_database: "dendrite_mediaapi"
  205. matrix_dendrite_room_database: "dendrite_room"
  206. matrix_dendrite_sync_api_database: "dendrite_syncapi"
  207. matrix_dendrite_user_api_database: "dendrite_userapi"
  208. matrix_dendrite_push_server_database: "dendrite_pushserver"
  209. matrix_dendrite_relay_api_database: "dendrite_relayapi"
  210. matrix_dendrite_mscs_database: "dendrite_mscs"
  211. matrix_dendrite_client_api_turn_uris: []
  212. matrix_dendrite_client_api_turn_shared_secret: ""
  213. matrix_dendrite_client_api_turn_allow_guests: false
  214. matrix_dendrite_disable_tls_validation: false
  215. matrix_dendrite_trusted_id_servers:
  216. - "matrix.org"
  217. - "vector.im"
  218. # Controls whether Dendrite will federate at all.
  219. # Disable this to completely isolate your server from the rest of the Matrix network.
  220. matrix_dendrite_federation_enabled: true
  221. # Controls whether the self-check feature should validate SSL certificates.
  222. matrix_dendrite_self_check_validate_certificates: true
  223. # Default Dendrite configuration template which covers the generic use case.
  224. # You can customize it by controlling the various variables inside it.
  225. #
  226. # For a more advanced customization, you can extend the default (see `matrix_dendrite_configuration_extension_yaml`)
  227. # or completely replace this variable with your own template.
  228. matrix_dendrite_configuration_yaml: "{{ lookup('template', matrix_dendrite_template_dendrite_config) }}"
  229. matrix_dendrite_configuration_extension_yaml: |
  230. # Your custom YAML configuration for Dendrite goes here.
  231. # This configuration extends the default starting configuration (`matrix_dendrite_configuration_yaml`).
  232. #
  233. # You can override individual variables from the default configuration, or introduce new ones.
  234. #
  235. # If you need something more special, you can take full control by
  236. # completely redefining `matrix_dendrite_configuration_yaml`.
  237. #
  238. # Example configuration extension follows:
  239. #
  240. # server_notices:
  241. # system_mxid_localpart: notices
  242. # system_mxid_display_name: "Server Notices"
  243. # system_mxid_avatar_url: "mxc://server.com/oumMVlgDnLYFaPVkExemNVVZ"
  244. # room_name: "Server Notices"
  245. matrix_dendrite_configuration_extension: "{{ matrix_dendrite_configuration_extension_yaml | from_yaml if matrix_dendrite_configuration_extension_yaml | from_yaml is mapping else {} }}"
  246. # Holds the final Dendrite configuration (a combination of the default and its extension).
  247. # You most likely don't need to touch this variable. Instead, see `matrix_dendrite_configuration_yaml`.
  248. matrix_dendrite_configuration: "{{ matrix_dendrite_configuration_yaml | from_yaml | combine(matrix_dendrite_configuration_extension, recursive=True) }}"
  249. matrix_dendrite_user_api_auto_join_rooms: []
  250. # statistics reporting configuration. These statistics contain the server
  251. # name, number of active users and some information on your deployment config.
  252. matrix_dendrite_report_stats: false
  253. # Contorls whether thumbnails for media content are generated dynamically
  254. matrix_dendrite_media_api_dynamic_thumbnails: false
  255. matrix_dendrite_media_api_max_thumbnail_generators: 10
  256. # Controls whether the full-text search engine is enabled
  257. matrix_dendrite_sync_api_search_enabled: false