Matrix Docker Ansible eploy
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

228 Zeilen
12 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_container_image_self_build: false
  6. matrix_dendrite_container_image_self_build_repo: "https://github.com/matrix-org/dendrite.git"
  7. matrix_dendrite_docker_image_path: "matrixdotorg/dendrite-monolith"
  8. matrix_dendrite_docker_image: "{{ matrix_dendrite_docker_image_name_prefix }}{{ matrix_dendrite_docker_image_path }}:{{ matrix_dendrite_docker_image_tag }}"
  9. matrix_dendrite_docker_image_name_prefix: "{{ 'localhost/' if matrix_dendrite_container_image_self_build else matrix_container_global_registry_prefix }}"
  10. matrix_dendrite_docker_image_tag: "v0.13.1"
  11. matrix_dendrite_docker_image_force_pull: "{{ matrix_dendrite_docker_image.endswith(':latest') }}"
  12. matrix_dendrite_base_path: "{{ matrix_base_data_path }}/dendrite"
  13. matrix_dendrite_config_dir_path: "{{ matrix_dendrite_base_path }}/config"
  14. matrix_dendrite_storage_path: "{{ matrix_dendrite_base_path }}/storage"
  15. matrix_dendrite_media_store_path: "{{ matrix_dendrite_storage_path }}/media-store"
  16. matrix_dendrite_nats_storage_path: "{{ matrix_dendrite_base_path }}/nats"
  17. matrix_dendrite_bin_path: "{{ matrix_dendrite_base_path }}/bin"
  18. matrix_dendrite_ext_path: "{{ matrix_dendrite_base_path }}/ext"
  19. matrix_dendrite_docker_src_files_path: "{{ matrix_dendrite_base_path }}/docker-src"
  20. # By default, we make Dendrite only serve HTTP (not HTTPS).
  21. # HTTPS is usually served at the reverse-proxy side (usually via `matrix-nginx-proxy`).
  22. #
  23. # To enable HTTPS serving by Dendrite (directly):
  24. # - `matrix_dendrite_https_bind_port` must be set
  25. # - `-tls-cert` and `-tls-key` must be passed to Dendrite via `matrix_dendrite_process_extra_arguments`
  26. # - the TLS certificate files must be mounted into the container using `matrix_dendrite_container_additional_volumes`
  27. matrix_dendrite_http_bind_port: 8008
  28. matrix_dendrite_https_bind_port: ~
  29. # This is passed as an `-http-bind-address` flag to the Dendrite server in the container
  30. matrix_dendrite_http_bind_address: "{{ (':' + matrix_dendrite_http_bind_port | string) if matrix_dendrite_http_bind_port else '' }}"
  31. # This is passed as an `-https-bind-address` flag to the Dendrite server in the container
  32. matrix_dendrite_https_bind_address: "{{ (':' + matrix_dendrite_https_bind_port | string) if matrix_dendrite_https_bind_port else '' }}"
  33. # The base container network. It will be auto-created by this role if it doesn't exist already.
  34. matrix_dendrite_container_network: "{{ matrix_docker_network }}"
  35. # A list of additional container networks that the container would be connected to.
  36. # The role does not create these networks, so make sure they already exist.
  37. # Use this to expose this container to another reverse proxy, which runs in a different container network.
  38. matrix_dendrite_container_additional_networks: []
  39. # Controls whether the matrix-dendrite container exposes the HTTP port (tcp/{{ matrix_dendrite_http_bind_port }} in the container).
  40. #
  41. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8008"), or empty string to not expose.
  42. matrix_dendrite_container_http_host_bind_address: ""
  43. # Controls whether the matrix-dendrite container exposes the HTTPS port (tcp/{{ matrix_dendrite_https_bind_port }} in the container).
  44. #
  45. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8448"), or empty string to not expose.
  46. matrix_dendrite_container_https_host_bind_address: ""
  47. # A list of extra arguments to pass to the container (`docker run` command)
  48. # Also see `matrix_dendrite_container_arguments`
  49. matrix_dendrite_container_extra_arguments: []
  50. # matrix_dendrite_container_extra_arguments_auto is a list of extra arguments to pass to the container.
  51. # This list is managed by the playbook. You're not meant to override this variable.
  52. # If you'd like to inject your own arguments, see `matrix_dendrite_container_extra_arguments`.
  53. matrix_dendrite_container_extra_arguments_auto: []
  54. # matrix_dendrite_container_arguments holds the final list of extra arguments to pass to the container.
  55. # You're not meant to override this variable.
  56. # If you'd like to inject your own arguments, see `matrix_dendrite_container_extra_arguments`.
  57. matrix_dendrite_container_arguments: "{{ matrix_dendrite_container_extra_arguments + matrix_dendrite_container_extra_arguments_auto }}"
  58. # A list of extra arguments to pass to the container process (`dendrite-monolith` command)
  59. # Example:
  60. # matrix_dendrite_process_extra_arguments:
  61. # - "-tls-cert /some/path.crt"
  62. # - "-tls-key /some/path.pem"
  63. matrix_dendrite_process_extra_arguments: []
  64. # List of systemd services that matrix-dendrite.service depends on
  65. matrix_dendrite_systemd_required_services_list: ["docker.service"]
  66. # List of systemd services that matrix-dendrite.service wants
  67. matrix_dendrite_systemd_wanted_services_list: []
  68. # Specifies which template files to use when configuring Dendrite.
  69. # If you'd like to have your own different configuration, feel free to copy and paste
  70. # the original files into your inventory (e.g. in `inventory/host_vars/<host>/`)
  71. # and then change the specific host's `vars.yml` file like this:
  72. # matrix_dendrite_template_dendrite_config: "{{ playbook_dir }}/inventory/host_vars/<host>/dendrite.yaml.j2"
  73. matrix_dendrite_template_dendrite_config: "{{ role_path }}/templates/dendrite/dendrite.yaml.j2"
  74. matrix_dendrite_client_api_registration_shared_secret: ""
  75. matrix_dendrite_allow_guest_access: false
  76. matrix_dendrite_max_file_size_bytes: 10485760
  77. # Controls which HTTP header (e.g. 'X-Forwarded-For', 'X-Real-IP') to inspect to find the real remote IP address of the client.
  78. # This is likely required if Dendrite is running behind a reverse proxy server.
  79. matrix_dendrite_sync_api_real_ip_header: "X-Forwarded-For"
  80. # The tmpfs at /tmp needs to be large enough to handle multiple concurrent file uploads.
  81. matrix_dendrite_tmp_directory_size_mb: 500
  82. # Rate limits
  83. matrix_dendrite_client_api_rate_limiting_enabled: true
  84. matrix_dendrite_client_api_rate_limiting_threshold: 20
  85. matrix_dendrite_client_api_rate_limiting_cooloff_ms: 500
  86. # Controls whether people with access to the homeserver can register by themselves.
  87. matrix_dendrite_client_api_registration_disabled: true
  88. # reCAPTCHA API for validating registration attempts
  89. matrix_dendrite_client_api_enable_registration_captcha: false
  90. matrix_dendrite_client_api_recaptcha_public_key: ""
  91. matrix_dendrite_client_api_recaptcha_private_key: ""
  92. matrix_dendrite_client_api_recaptcha_siteverify_api: ""
  93. matrix_dendrite_client_api_recaptcha_api_js_url: ""
  94. matrix_dendrite_client_api_recaptcha_form_field: ""
  95. matrix_dendrite_client_api_recaptcha_sitekey_class: ""
  96. # A list of additional "volumes" to mount in the container.
  97. # This list gets populated dynamically based on Dendrite extensions that have been enabled.
  98. # Contains definition objects like this: `{"src": "/outside", "dst": "/inside", "options": "rw|ro|slave|.."}
  99. #
  100. # Note: internally, this uses the `-v` flag for mounting the specified volumes.
  101. # It's better (safer) to use the `--mount` flag for mounting volumes.
  102. # To use `--mount`, specify it in `matrix_dendrite_container_extra_arguments`.
  103. # Example: `matrix_dendrite_container_extra_arguments: ['--mount type=bind,src=/outside,dst=/inside,ro']
  104. matrix_dendrite_container_additional_volumes: []
  105. # A list of appservice config files (in-container filesystem paths).
  106. # This list gets populated dynamically based on Dendrite extensions that have been enabled.
  107. # You may wish to use this together with `matrix_dendrite_container_additional_volumes` or `matrix_dendrite_container_extra_arguments`.
  108. # Also see `matrix_dendrite_app_service_config_files_final`
  109. matrix_dendrite_app_service_config_files: []
  110. # matrix_dendrite_app_service_config_files_auto is a list of appservice config files.
  111. # This list is managed by the playbook. You're not meant to override this variable.
  112. # If you'd like to inject your own arguments, see `matrix_dendrite_app_service_config_files`.
  113. matrix_dendrite_app_service_config_files_auto: []
  114. # matrix_dendrite_app_service_config_files_final holds the final list of config files to pass to the container.
  115. # You're not meant to override this variable.
  116. # If you'd like to inject your own arguments, see `matrix_dendrite_app_service_config_files`.
  117. matrix_dendrite_app_service_config_files_final: "{{ matrix_dendrite_app_service_config_files + matrix_dendrite_app_service_config_files_auto }}"
  118. # Enable exposure of metrics
  119. matrix_dendrite_metrics_enabled: false
  120. matrix_dendrite_metrics_username: "metrics"
  121. matrix_dendrite_metrics_password: "metrics"
  122. # Postgres database information
  123. matrix_dendrite_database_str: "postgresql://{{ matrix_dendrite_database_user }}:{{ matrix_dendrite_database_password }}@{{ matrix_dendrite_database_hostname }}"
  124. matrix_dendrite_database_hostname: ""
  125. matrix_dendrite_database_user: "dendrite"
  126. matrix_dendrite_database_password: "itsasecret"
  127. matrix_dendrite_federation_api_database: "dendrite_federationapi"
  128. matrix_dendrite_key_server_database: "dendrite_keyserver"
  129. matrix_dendrite_media_api_database: "dendrite_mediaapi"
  130. matrix_dendrite_room_database: "dendrite_room"
  131. matrix_dendrite_sync_api_database: "dendrite_syncapi"
  132. matrix_dendrite_user_api_database: "dendrite_userapi"
  133. matrix_dendrite_push_server_database: "dendrite_pushserver"
  134. matrix_dendrite_relay_api_database: "dendrite_relayapi"
  135. matrix_dendrite_mscs_database: "dendrite_mscs"
  136. matrix_dendrite_client_api_turn_uris: []
  137. matrix_dendrite_client_api_turn_shared_secret: ""
  138. matrix_dendrite_client_api_turn_allow_guests: false
  139. matrix_dendrite_disable_tls_validation: false
  140. matrix_dendrite_trusted_id_servers:
  141. - "matrix.org"
  142. - "vector.im"
  143. # Controls whether Dendrite will federate at all.
  144. # Disable this to completely isolate your server from the rest of the Matrix network.
  145. matrix_dendrite_federation_enabled: true
  146. # Controls whether the self-check feature should validate SSL certificates.
  147. matrix_dendrite_self_check_validate_certificates: true
  148. # Default Dendrite configuration template which covers the generic use case.
  149. # You can customize it by controlling the various variables inside it.
  150. #
  151. # For a more advanced customization, you can extend the default (see `matrix_dendrite_configuration_extension_yaml`)
  152. # or completely replace this variable with your own template.
  153. matrix_dendrite_configuration_yaml: "{{ lookup('template', 'templates/dendrite/dendrite.yaml.j2') }}"
  154. matrix_dendrite_configuration_extension_yaml: |
  155. # Your custom YAML configuration for Dendrite goes here.
  156. # This configuration extends the default starting configuration (`matrix_dendrite_configuration_yaml`).
  157. #
  158. # You can override individual variables from the default configuration, or introduce new ones.
  159. #
  160. # If you need something more special, you can take full control by
  161. # completely redefining `matrix_dendrite_configuration_yaml`.
  162. #
  163. # Example configuration extension follows:
  164. #
  165. # server_notices:
  166. # system_mxid_localpart: notices
  167. # system_mxid_display_name: "Server Notices"
  168. # system_mxid_avatar_url: "mxc://server.com/oumMVlgDnLYFaPVkExemNVVZ"
  169. # room_name: "Server Notices"
  170. matrix_dendrite_configuration_extension: "{{ matrix_dendrite_configuration_extension_yaml | from_yaml if matrix_dendrite_configuration_extension_yaml | from_yaml is mapping else {} }}"
  171. # Holds the final Dendrite configuration (a combination of the default and its extension).
  172. # You most likely don't need to touch this variable. Instead, see `matrix_dendrite_configuration_yaml`.
  173. matrix_dendrite_configuration: "{{ matrix_dendrite_configuration_yaml | from_yaml | combine(matrix_dendrite_configuration_extension, recursive=True) }}"
  174. matrix_dendrite_user_api_auto_join_rooms: []
  175. # statistics reporting configuration. These statistics contain the server
  176. # name, number of active users and some information on your deployment config.
  177. matrix_dendrite_report_stats: false
  178. # Contorls whether thumbnails for media content are generated dynamically
  179. matrix_dendrite_media_api_dynamic_thumbnails: false
  180. matrix_dendrite_media_api_max_thumbnail_generators: 10
  181. # Controls whether the full-text search engine is enabled
  182. matrix_dendrite_sync_api_search_enabled: false