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

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