Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

159 righe
7.8 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.3.6"
  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. matrix_dendrite_macaroon_secret_key: ""
  37. matrix_dendrite_registration_shared_secret: "{{ matrix_dendrite_macaroon_secret_key }}"
  38. matrix_dendrite_allow_guest_access: false
  39. matrix_dendrite_form_secret: "{{ matrix_dendrite_macaroon_secret_key }}"
  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. # Log levels
  44. matrix_dendrite_log_level: "warning"
  45. matrix_dendrite_log_path: "/var/log/dendrite"
  46. # Rate limits
  47. matrix_dendrite_rate_limiting_enabled: true
  48. matrix_dendrite_rate_limiting_threshold: 5
  49. matrix_dendrite_rate_limiting_cooloff_ms: 500
  50. # Controls whether people with access to the homeserver can register by themselves.
  51. matrix_dendrite_registration_disabled: false
  52. # reCAPTCHA API for validating registration attempts
  53. matrix_dendrite_enable_registration_captcha: false
  54. matrix_dendrite_recaptcha_public_key: ""
  55. matrix_dendrite_recaptcha_private_key: ""
  56. # A list of additional "volumes" to mount in the container.
  57. # This list gets populated dynamically based on Dendrite extensions that have been enabled.
  58. # Contains definition objects like this: `{"src": "/outside", "dst": "/inside", "options": "rw|ro|slave|.."}
  59. #
  60. # Note: internally, this uses the `-v` flag for mounting the specified volumes.
  61. # It's better (safer) to use the `--mount` flag for mounting volumes.
  62. # To use `--mount`, specify it in `matrix_dendrite_container_extra_arguments`.
  63. # Example: `matrix_dendrite_container_extra_arguments: ['--mount type=bind,src=/outside,dst=/inside,ro']
  64. matrix_dendrite_container_additional_volumes: []
  65. # A list of appservice config files (in-container filesystem paths).
  66. # This list gets populated dynamically based on Dendrite extensions that have been enabled.
  67. # You may wish to use this together with `matrix_dendrite_container_additional_volumes` or `matrix_dendrite_container_extra_arguments`.
  68. matrix_dendrite_app_service_config_files: []
  69. # Enable exposure of metrics
  70. matrix_dendrite_metrics_enabled: false
  71. matrix_dendrite_metrics_username: "metrics"
  72. matrix_dendrite_metrics_password: "metrics"
  73. # Postgres database information
  74. matrix_dendrite_database_str: "postgresql://{{ matrix_dendrite_database_user }}:{{ matrix_dendrite_database_password }}@{{ matrix_dendrite_database_hostname }}"
  75. matrix_dendrite_database_hostname: "matrix-postgres"
  76. matrix_dendrite_database_user: "dendrite"
  77. matrix_dendrite_database_password: "itsasecret"
  78. matrix_dendrite_naffka_database: "dendrite_naffka"
  79. matrix_dendrite_appservice_database: "dendrite_appservice"
  80. matrix_dendrite_federationsender_database: "dendrite_federationsender"
  81. matrix_dendrite_keyserver_database: "dendrite_keyserver"
  82. matrix_dendrite_mediaapi_database: "dendrite_mediaapi"
  83. matrix_dendrite_room_database: "dendrite_room"
  84. matrix_dendrite_singingkeyserver_database: "dendrite_sigingkeyserver"
  85. matrix_dendrite_syncapi_database: "dendrite_syncapi"
  86. matrix_dendrite_account_database: "dendrite_account"
  87. matrix_dendrite_device_database: "dendrite_device"
  88. matrix_dendrite_turn_uris: []
  89. matrix_dendrite_turn_shared_secret: ""
  90. matrix_dendrite_turn_allow_guests: False
  91. matrix_s3_media_store_enabled: false
  92. matrix_s3_media_store_custom_endpoint_enabled: false
  93. matrix_s3_goofys_docker_image: "ewoutp/goofys:latest"
  94. matrix_s3_goofys_docker_image_force_pull: "{{ matrix_s3_goofys_docker_image.endswith(':latest') }}"
  95. matrix_s3_media_store_custom_endpoint: "your-custom-endpoint"
  96. matrix_s3_media_store_bucket_name: "your-bucket-name"
  97. matrix_s3_media_store_aws_access_key: "your-aws-access-key"
  98. matrix_s3_media_store_aws_secret_key: "your-aws-secret-key"
  99. matrix_s3_media_store_region: "eu-central-1"
  100. # Controls whether the self-check feature should validate TLS certificates.
  101. matrix_dendrite_disable_tls_validation: false
  102. matrix_dendrite_trusted_id_servers:
  103. - "matrix.org"
  104. - "vector.im"
  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) }}"