Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

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