Matrix Docker Ansible eploy
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

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