Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 

173 строки
8.6 KiB

  1. # Dendrite is a second-generation Matrix homeserver currently in Beta
  2. # See: https://github.com/matrix-org/dendrite
  3. matrix_dendrite_enabled: true
  4. matrix_dendrite_docker_image: "{{ matrix_dendrite_docker_image_name_prefix }}matrixdotorg/dendrite-monolith:{{ matrix_dendrite_docker_image_tag }}"
  5. matrix_dendrite_docker_image_name_prefix: "docker.io/"
  6. matrix_dendrite_docker_image_tag: "v0.5.1"
  7. matrix_dendrite_docker_image_force_pull: "{{ matrix_dendrite_docker_image.endswith(':latest') }}"
  8. matrix_dendrite_base_path: "{{ matrix_base_data_path }}/dendrite"
  9. matrix_dendrite_config_dir_path: "{{ matrix_dendrite_base_path }}/config"
  10. matrix_dendrite_storage_path: "{{ matrix_dendrite_base_path }}/storage"
  11. matrix_dendrite_media_store_path: "{{ matrix_dendrite_storage_path }}/media-store"
  12. matrix_dendrite_ext_path: "{{ matrix_dendrite_base_path }}/ext"
  13. # By default, we make Dendrite only serve HTTP (not HTTPS).
  14. # HTTPS is usually served at the reverse-proxy side (usually via `matrix-nginx-proxy`).
  15. #
  16. # To enable HTTPS serving by Dendrite (directly):
  17. # - `matrix_dendrite_https_bind_port` must be set
  18. # - `-tls-cert` and `-tls-key` must be passed to Dendrite via `matrix_dendrite_process_extra_arguments`
  19. # - the TLS certificate files must be mounted into the container using `matrix_dendrite_container_additional_volumes`
  20. matrix_dendrite_http_bind_port: 8008
  21. matrix_dendrite_https_bind_port: ~
  22. # This is passed as an `-http-bind-address` flag to the Dendrite server in the container
  23. matrix_dendrite_http_bind_address: "{{ (':' + matrix_dendrite_http_bind_port|string) if matrix_dendrite_http_bind_port else '' }}"
  24. # This is passed as an `-https-bind-address` flag to the Dendrite server in the container
  25. matrix_dendrite_https_bind_address: "{{ (':' + matrix_dendrite_https_bind_port|string) if matrix_dendrite_https_bind_port else '' }}"
  26. # Controls whether the matrix-dendrite container exposes the HTTP port (tcp/{{ matrix_dendrite_http_bind_port }} in the container).
  27. #
  28. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8008"), or empty string to not expose.
  29. matrix_dendrite_container_http_host_bind_address: ""
  30. # Controls whether the matrix-dendrite container exposes the HTTPS port (tcp/{{ matrix_dendrite_https_bind_port }} in the container).
  31. #
  32. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8448"), or empty string to not expose.
  33. matrix_dendrite_container_https_host_bind_address: ""
  34. # A list of extra arguments to pass to the container (`docker run` command)
  35. matrix_dendrite_container_extra_arguments: []
  36. # A list of extra arguments to pass to the container process (`dendrite-monolith` command)
  37. # Example:
  38. # matrix_dendrite_process_extra_arguments:
  39. # - "-tls-cert /some/path.crt"
  40. # - "-tls-key /some/path.pem"
  41. matrix_dendrite_process_extra_arguments: []
  42. # List of systemd services that matrix-dendrite.service depends on
  43. matrix_dendrite_systemd_required_services_list: ["docker.service"]
  44. # List of systemd services that matrix-dendrite.service wants
  45. matrix_dendrite_systemd_wanted_services_list: []
  46. # Specifies which template files to use when configuring Dendrite.
  47. # If you'd like to have your own different configuration, feel free to copy and paste
  48. # the original files into your inventory (e.g. in `inventory/host_vars/<host>/`)
  49. # and then change the specific host's `vars.yaml` file like this:
  50. # matrix_dendrite_template_dendrite_config: "{{ playbook_dir }}/inventory/host_vars/<host>/dendrite.yaml.j2"
  51. matrix_dendrite_template_dendrite_config: "{{ role_path }}/templates/dendrite/dendrite.yaml.j2"
  52. # A secret used to derive various other secrets
  53. matrix_dendrite_generic_secret_key: ''
  54. matrix_dendrite_registration_shared_secret: ''
  55. matrix_dendrite_allow_guest_access: false
  56. matrix_dendrite_max_file_size_bytes: 10485760
  57. # The tmpfs at /tmp needs to be large enough to handle multiple concurrent file uploads.
  58. matrix_dendrite_tmp_directory_size_mb: 500
  59. # Rate limits
  60. matrix_dendrite_rate_limiting_enabled: true
  61. matrix_dendrite_rate_limiting_threshold: 5
  62. matrix_dendrite_rate_limiting_cooloff_ms: 500
  63. # Controls whether people with access to the homeserver can register by themselves.
  64. matrix_dendrite_registration_disabled: false
  65. # reCAPTCHA API for validating registration attempts
  66. matrix_dendrite_enable_registration_captcha: false
  67. matrix_dendrite_recaptcha_public_key: ""
  68. matrix_dendrite_recaptcha_private_key: ""
  69. # A list of additional "volumes" to mount in the container.
  70. # This list gets populated dynamically based on Dendrite extensions that have been enabled.
  71. # Contains definition objects like this: `{"src": "/outside", "dst": "/inside", "options": "rw|ro|slave|.."}
  72. #
  73. # Note: internally, this uses the `-v` flag for mounting the specified volumes.
  74. # It's better (safer) to use the `--mount` flag for mounting volumes.
  75. # To use `--mount`, specify it in `matrix_dendrite_container_extra_arguments`.
  76. # Example: `matrix_dendrite_container_extra_arguments: ['--mount type=bind,src=/outside,dst=/inside,ro']
  77. matrix_dendrite_container_additional_volumes: []
  78. # A list of appservice config files (in-container filesystem paths).
  79. # This list gets populated dynamically based on Dendrite extensions that have been enabled.
  80. # You may wish to use this together with `matrix_dendrite_container_additional_volumes` or `matrix_dendrite_container_extra_arguments`.
  81. matrix_dendrite_app_service_config_files: []
  82. # Enable exposure of metrics
  83. matrix_dendrite_metrics_enabled: false
  84. matrix_dendrite_metrics_username: "metrics"
  85. matrix_dendrite_metrics_password: "metrics"
  86. # Postgres database information
  87. matrix_dendrite_database_str: "postgresql://{{ matrix_dendrite_database_user }}:{{ matrix_dendrite_database_password }}@{{ matrix_dendrite_database_hostname }}"
  88. matrix_dendrite_database_hostname: "matrix-postgres"
  89. matrix_dendrite_database_user: "dendrite"
  90. matrix_dendrite_database_password: "itsasecret"
  91. matrix_dendrite_naffka_database: "dendrite_naffka"
  92. matrix_dendrite_appservice_database: "dendrite_appservice"
  93. matrix_dendrite_federationsender_database: "dendrite_federationsender"
  94. matrix_dendrite_keyserver_database: "dendrite_keyserver"
  95. matrix_dendrite_mediaapi_database: "dendrite_mediaapi"
  96. matrix_dendrite_room_database: "dendrite_room"
  97. matrix_dendrite_singingkeyserver_database: "dendrite_sigingkeyserver"
  98. matrix_dendrite_syncapi_database: "dendrite_syncapi"
  99. matrix_dendrite_account_database: "dendrite_account"
  100. matrix_dendrite_device_database: "dendrite_device"
  101. matrix_dendrite_mscs_database: "dendrite_mscs"
  102. matrix_dendrite_turn_uris: []
  103. matrix_dendrite_turn_shared_secret: ""
  104. matrix_dendrite_turn_allow_guests: False
  105. # Controls whether the self-check feature should validate TLS certificates.
  106. matrix_dendrite_disable_tls_validation: false
  107. matrix_dendrite_trusted_id_servers:
  108. - "matrix.org"
  109. - "vector.im"
  110. # Controls whether Dendrite will federate at all.
  111. # Disable this to completely isolate your server from the rest of the Matrix network.
  112. matrix_dendrite_federation_enabled: true
  113. # Controls whether the self-check feature should validate SSL certificates.
  114. matrix_dendrite_self_check_validate_certificates: true
  115. # Default Dendrite configuration template which covers the generic use case.
  116. # You can customize it by controlling the various variables inside it.
  117. #
  118. # For a more advanced customization, you can extend the default (see `matrix_dendrite_configuration_extension_yaml`)
  119. # or completely replace this variable with your own template.
  120. matrix_dendrite_configuration_yaml: "{{ lookup('template', 'templates/dendrite/dendrite.yaml.j2') }}"
  121. matrix_dendrite_configuration_extension_yaml: |
  122. # Your custom YAML configuration for Dendrite goes here.
  123. # This configuration extends the default starting configuration (`matrix_dendrite_configuration_yaml`).
  124. #
  125. # You can override individual variables from the default configuration, or introduce new ones.
  126. #
  127. # If you need something more special, you can take full control by
  128. # completely redefining `matrix_dendrite_configuration_yaml`.
  129. #
  130. # Example configuration extension follows:
  131. #
  132. # server_notices:
  133. # system_mxid_localpart: notices
  134. # system_mxid_display_name: "Server Notices"
  135. # system_mxid_avatar_url: "mxc://server.com/oumMVlgDnLYFaPVkExemNVVZ"
  136. # room_name: "Server Notices"
  137. matrix_dendrite_configuration_extension: "{{ matrix_dendrite_configuration_extension_yaml|from_yaml if matrix_dendrite_configuration_extension_yaml|from_yaml is mapping else {} }}"
  138. # Holds the final Dendrite configuration (a combination of the default and its extension).
  139. # You most likely don't need to touch this variable. Instead, see `matrix_dendrite_configuration_yaml`.
  140. matrix_dendrite_configuration: "{{ matrix_dendrite_configuration_yaml|from_yaml|combine(matrix_dendrite_configuration_extension, recursive=True) }}"