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

162 строки
8.0 KiB

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