Matrix Docker Ansible eploy
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

361 wiersze
17 KiB

  1. # Synapse is a Matrix homeserver
  2. # See: https://github.com/matrix-org/synapse
  3. matrix_synapse_enabled: true
  4. matrix_synapse_docker_image: "matrixdotorg/synapse:v1.6.0"
  5. matrix_synapse_docker_image_force_pull: "{{ matrix_synapse_docker_image.endswith(':latest') }}"
  6. matrix_synapse_base_path: "{{ matrix_base_data_path }}/synapse"
  7. matrix_synapse_config_dir_path: "{{ matrix_synapse_base_path }}/config"
  8. matrix_synapse_run_path: "{{ matrix_synapse_base_path }}/run"
  9. matrix_synapse_storage_path: "{{ matrix_synapse_base_path }}/storage"
  10. matrix_synapse_media_store_path: "{{ matrix_synapse_storage_path }}/media-store"
  11. matrix_synapse_ext_path: "{{ matrix_synapse_base_path }}/ext"
  12. # Controls whether the matrix-synapse container exposes the Client/Server API port (tcp/8008 in the container).
  13. #
  14. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8008"), or empty string to not expose.
  15. matrix_synapse_container_client_api_host_bind_port: ''
  16. # Controls whether the matrix-synapse container exposes the plain (unencrypted) Server/Server (Federation) API port (tcp/8048 in the container).
  17. #
  18. # Takes effect only if federation is enabled (matrix_synapse_federation_enabled).
  19. #
  20. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8048"), or empty string to not expose.
  21. matrix_synapse_container_federation_api_plain_host_bind_port: ''
  22. # Controls whether the matrix-synapse container exposes the tls (encrypted) Server/Server (Federation) API port (tcp/8448 in the container).
  23. #
  24. # Takes effect only if federation is enabled (matrix_synapse_federation_enabled)
  25. # and TLS support is enabled (matrix_synapse_tls_federation_listener_enabled).
  26. #
  27. # Takes an "<ip>:<port>" or "<port>" value (e.g. "8448"), or empty string to not expose.
  28. matrix_synapse_container_federation_api_tls_host_bind_port: ''
  29. # Controls whether the matrix-synapse container exposes the metrics port (tcp/9100 in the container).
  30. #
  31. # Takes effect only if metrics are enabled (matrix_synapse_metrics_enabled).
  32. #
  33. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9100"), or empty string to not expose.
  34. matrix_synapse_container_metrics_api_host_bind_port: ''
  35. # A list of extra arguments to pass to the container
  36. matrix_synapse_container_extra_arguments: []
  37. # List of systemd services that matrix-synapse.service depends on
  38. matrix_synapse_systemd_required_services_list: ['docker.service']
  39. # List of systemd services that matrix-synapse.service wants
  40. matrix_synapse_systemd_wanted_services_list: []
  41. matrix_synapse_in_container_python_packages_path: "/usr/local/lib/python3.7/site-packages"
  42. # Specifies which template files to use when configuring Synapse.
  43. # If you'd like to have your own different configuration, feel free to copy and paste
  44. # the original files into your inventory (e.g. in `inventory/host_vars/<host>/`)
  45. # and then change the specific host's `vars.yaml` file like this:
  46. # matrix_synapse_template_synapse_homeserver: "{{ playbook_dir }}/inventory/host_vars/<host>/homeserver.yaml.j2"
  47. matrix_synapse_template_synapse_homeserver: "{{ role_path }}/templates/synapse/homeserver.yaml.j2"
  48. matrix_synapse_template_synapse_log: "{{ role_path }}/templates/synapse/synapse.log.config.j2"
  49. matrix_synapse_macaroon_secret_key: ""
  50. matrix_synapse_registration_shared_secret: "{{ matrix_synapse_macaroon_secret_key }}"
  51. matrix_synapse_allow_guest_access: false
  52. matrix_synapse_form_secret: "{{ matrix_synapse_macaroon_secret_key }}"
  53. matrix_synapse_id_servers_public: ['matrix.org', 'vector.im']
  54. # The list of identity servers to use for Synapse.
  55. # We assume this role runs standalone without a local Identity server, so we point Synapse to public ones.
  56. # This most likely gets overwritten later, so that a local Identity server is used.
  57. matrix_synapse_trusted_third_party_id_servers: "{{ matrix_synapse_id_servers_public }}"
  58. matrix_synapse_max_upload_size_mb: 10
  59. # The tmpfs at /tmp needs to be large enough to handle multiple concurrent file uploads.
  60. matrix_synapse_tmp_directory_size_mb: "{{ matrix_synapse_max_upload_size_mb * 50 }}"
  61. # Log levels
  62. # Possible options are defined here https://docs.python.org/3/library/logging.html#logging-levels
  63. # warning: setting log level to DEBUG will make synapse log sensitive information such
  64. # as access tokens.
  65. #
  66. # Increasing verbosity may lead to an excessive amount of log messages being generated,
  67. # some of which may get dropped by systemd-journald on certain distributions (like CentOS 7).
  68. # You can work around it by adding `RateLimitInterval=0` and `RateLimitBurst=0` under `[Storage]` in
  69. # `/etc/systemd/journald.conf` and restarting the logging service (`systemctl restart systemd-journald`).
  70. matrix_synapse_log_level: "WARNING"
  71. matrix_synapse_storage_sql_log_level: "WARNING"
  72. matrix_synapse_root_log_level: "WARNING"
  73. # Rate limits
  74. matrix_synapse_rc_message:
  75. per_second: 0.2
  76. burst_count: 10
  77. matrix_synapse_rc_registration:
  78. per_second: 0.17
  79. burst_count: 3
  80. matrix_synapse_rc_login:
  81. address:
  82. per_second: 0.17
  83. burst_count: 3
  84. account:
  85. per_second: 0.17
  86. burst_count: 3
  87. failed_attempts:
  88. per_second: 0.17
  89. burst_count: 3
  90. matrix_synapse_rc_federation:
  91. window_size: 1000
  92. sleep_limit: 10
  93. sleep_delay: 500
  94. reject_limit: 50
  95. concurrent: 3
  96. matrix_synapse_federation_rr_transactions_per_room_per_second: 50
  97. # Controls whether the TLS federation listener is enabled (tcp/8448).
  98. # Only makes sense if federation is enabled (`matrix_synapse_federation_enabled`).
  99. # Note that federation may potentially be enabled as non-TLS on tcp/8048 as well.
  100. # If you're serving Synapse behind an HTTPS-capable reverse-proxy,
  101. # you can disable the TLS listener (`matrix_synapse_tls_federation_listener_enabled: false`).
  102. matrix_synapse_tls_federation_listener_enabled: true
  103. matrix_synapse_tls_certificate_path: "/data/{{ matrix_server_fqn_matrix }}.tls.crt"
  104. matrix_synapse_tls_private_key_path: "/data/{{ matrix_server_fqn_matrix }}.tls.key"
  105. # Enable this to allow Synapse to report utilization statistics about your server to matrix.org
  106. # (things like number of users, number of messages sent, uptime, load, etc.)
  107. matrix_synapse_report_stats: false
  108. # Controls whether the Matrix server will track presence status (online, offline, unavailable) for users.
  109. # If users participate in large rooms with many other servers,
  110. # disabling this will decrease server load significantly.
  111. matrix_synapse_use_presence: true
  112. # Controls whether accessing the server's public rooms directory can be done without authentication.
  113. # For private servers, you most likely wish to require authentication,
  114. # unless you know what list of rooms you're publishing to the world and explicitly want to do it.
  115. matrix_synapse_allow_public_rooms_without_auth: false
  116. # Controls whether remote servers can fetch this server's public rooms directory via federation.
  117. # For private servers, you most likely wish to forbid it.
  118. matrix_synapse_allow_public_rooms_over_federation: false
  119. # Controls whether people with access to the homeserver can register by themselves.
  120. matrix_synapse_enable_registration: false
  121. # A list of 3PID types which users must supply when registering (possible values: email, msisdn).
  122. matrix_synapse_registrations_require_3pid: []
  123. # Users who register on this homeserver will automatically be joined to these rooms.
  124. # Rooms are to be specified using addresses (e.g. `#address:example.com`)
  125. matrix_synapse_auto_join_rooms: []
  126. # Controls whether auto-join rooms (`matrix_synapse_auto_join_rooms`) are to be created
  127. # automatically if they don't already exist.
  128. matrix_synapse_autocreate_auto_join_rooms: true
  129. # Controls password-peppering for Synapse. Not to be changed after initial setup.
  130. matrix_synapse_password_config_pepper: ""
  131. # Controls if Synapse allows people to authenticate against its local database.
  132. # It may be useful to disable this if you've configured additional password providers
  133. # and only wish authentication to happen through them.
  134. matrix_synapse_password_config_localdb_enabled: true
  135. # Controls the number of events that Synapse caches in memory.
  136. matrix_synapse_event_cache_size: "100K"
  137. # Controls cache sizes for Synapse via the SYNAPSE_CACHE_FACTOR environment variable.
  138. # Raise this to increase cache sizes or lower it to potentially lower memory use.
  139. # To learn more, see:
  140. # - https://github.com/matrix-org/synapse#help-synapse-eats-all-my-ram
  141. # - https://github.com/matrix-org/synapse/issues/3939
  142. matrix_synapse_cache_factor: 0.5
  143. # Controls whether Synapse will federate at all.
  144. # Disable this to completely isolate your server from the rest of the Matrix network.
  145. # Also see: `matrix_synapse_tls_federation_listener_enabled` if you wish to keep federation enabled,
  146. # but want to stop the TLS listener (port 8448).
  147. matrix_synapse_federation_enabled: true
  148. # A list of domain names that are allowed to federate with the given Synapse server.
  149. # An empty list value (`[]`) will also effectively stop federation, but if that's the desired
  150. # result, it's better to accomplish it by changing `matrix_synapse_federation_enabled`.
  151. matrix_synapse_federation_domain_whitelist: ~
  152. # A list of additional "volumes" to mount in the container.
  153. # This list gets populated dynamically based on Synapse extensions that have been enabled.
  154. # Contains definition objects like this: `{"src": "/outside", "dst": "/inside", "options": "rw|ro|slave|.."}
  155. #
  156. # Note: internally, this uses the `-v` flag for mounting the specified volumes.
  157. # It's better (safer) to use the `--mount` flag for mounting volumes.
  158. # To use `--mount`, specifiy it in `matrix_synapse_container_extra_arguments`.
  159. # Example: `matrix_synapse_container_extra_arguments: ['--mount type=bind,src=/outside,dst=/inside,ro']
  160. matrix_synapse_container_additional_volumes: []
  161. # A list of additional loggers to register in synapse.log.config.
  162. # This list gets populated dynamically based on Synapse extensions that have been enabled.
  163. # Contains definition objects like this: `{"name": "..", "level": "DEBUG"}
  164. matrix_synapse_additional_loggers: []
  165. # A list of appservice config files (in-container filesystem paths).
  166. # This list gets populated dynamically based on Synapse extensions that have been enabled.
  167. # You may wish to use this together with `matrix_synapse_container_additional_volumes` or `matrix_synapse_container_extra_arguments`.
  168. matrix_synapse_app_service_config_files: []
  169. # This is set dynamically during execution depending on whether
  170. # any password providers have been enabled or not.
  171. matrix_synapse_password_providers_enabled: false
  172. # Whether clients can request to include message content in push notifications
  173. # sent through third party servers. Setting this to false requires mobile clients
  174. # to load message content directly from the homeserver.
  175. matrix_synapse_push_include_content: true
  176. # If url previews should be generated. This will cause a request from Synapse to
  177. # URLs shared by users.
  178. matrix_synapse_url_preview_enabled: true
  179. # Enable exposure of metrics to Prometheus
  180. # See https://github.com/matrix-org/synapse/blob/master/docs/metrics-howto.rst
  181. matrix_synapse_metrics_enabled: false
  182. matrix_synapse_metrics_port: 9100
  183. # Send ERROR logs to sentry.io for easier tracking
  184. # To set this up: go to sentry.io, create a python project, and set
  185. # matrix_synapse_sentry_dsn to the URL it gives you.
  186. # See https://github.com/matrix-org/synapse/issues/4632 for important privacy concerns
  187. matrix_synapse_sentry_dsn: ""
  188. # Postgres database information
  189. matrix_synapse_database_host: ""
  190. matrix_synapse_database_user: ""
  191. matrix_synapse_database_password: ""
  192. matrix_synapse_database_database: ""
  193. matrix_synapse_turn_uris: []
  194. matrix_synapse_turn_shared_secret: ""
  195. matrix_synapse_turn_allow_guests: False
  196. matrix_synapse_email_enabled: false
  197. matrix_synapse_email_smtp_host: ""
  198. matrix_synapse_email_smtp_port: 587
  199. matrix_synapse_email_smtp_require_transport_security: false
  200. matrix_synapse_email_notif_from: "Matrix <matrix@{{ matrix_domain }}>"
  201. matrix_synapse_email_riot_base_url: "https://{{ matrix_server_fqn_riot }}"
  202. # Enable this to activate the REST auth password provider module.
  203. # See: https://github.com/kamax-io/matrix-synapse-rest-auth
  204. matrix_synapse_ext_password_provider_rest_auth_enabled: false
  205. matrix_synapse_ext_password_provider_rest_auth_download_url: "https://raw.githubusercontent.com/kamax-io/matrix-synapse-rest-auth/v0.1.2/rest_auth_provider.py"
  206. matrix_synapse_ext_password_provider_rest_auth_endpoint: ""
  207. matrix_synapse_ext_password_provider_rest_auth_registration_enforce_lowercase: false
  208. matrix_synapse_ext_password_provider_rest_auth_registration_profile_name_autofill: true
  209. matrix_synapse_ext_password_provider_rest_auth_login_profile_name_autofill: false
  210. # Enable this to activate the Shared Secret Auth password provider module.
  211. # See: https://github.com/devture/matrix-synapse-shared-secret-auth
  212. matrix_synapse_ext_password_provider_shared_secret_auth_enabled: false
  213. matrix_synapse_ext_password_provider_shared_secret_auth_download_url: "https://raw.githubusercontent.com/devture/matrix-synapse-shared-secret-auth/1.0.1/shared_secret_authenticator.py"
  214. matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret: ""
  215. # Enable this to activate LDAP password provider
  216. matrix_synapse_ext_password_provider_ldap_enabled: false
  217. matrix_synapse_ext_password_provider_ldap_uri: "ldap://ldap.mydomain.tld:389"
  218. matrix_synapse_ext_password_provider_ldap_start_tls: true
  219. matrix_synapse_ext_password_provider_ldap_base: ""
  220. matrix_synapse_ext_password_provider_ldap_attributes_uid: "uid"
  221. matrix_synapse_ext_password_provider_ldap_attributes_mail: "mail"
  222. matrix_synapse_ext_password_provider_ldap_attributes_name: "cn"
  223. matrix_synapse_ext_password_provider_ldap_bind_dn: ""
  224. matrix_synapse_ext_password_provider_ldap_bind_password: ""
  225. matrix_synapse_ext_password_provider_ldap_filter: ""
  226. # Enable this to activate the Synapse Antispam spam-checker module.
  227. # See: https://github.com/t2bot/synapse-simple-antispam
  228. matrix_synapse_ext_spam_checker_synapse_simple_antispam_enabled: false
  229. matrix_synapse_ext_spam_checker_synapse_simple_antispam_git_repository_url: "https://github.com/t2bot/synapse-simple-antispam"
  230. matrix_synapse_ext_spam_checker_synapse_simple_antispam_git_version: "f058d9ce2c7d4195ae461dcdd02df11a2d06a36b"
  231. matrix_synapse_ext_spam_checker_synapse_simple_antispam_config_blocked_homeservers: []
  232. matrix_s3_media_store_enabled: false
  233. matrix_s3_media_store_custom_endpoint_enabled: false
  234. matrix_s3_goofys_docker_image: "ewoutp/goofys:latest"
  235. matrix_s3_goofys_docker_image_force_pull: "{{ matrix_s3_goofys_docker_image.endswith(':latest') }}"
  236. matrix_s3_media_store_custom_endpoint: "your-custom-endpoint"
  237. matrix_s3_media_store_bucket_name: "your-bucket-name"
  238. matrix_s3_media_store_aws_access_key: "your-aws-access-key"
  239. matrix_s3_media_store_aws_secret_key: "your-aws-secret-key"
  240. matrix_s3_media_store_region: "eu-central-1"
  241. # Controls whether the self-check feature should validate SSL certificates.
  242. matrix_synapse_self_check_validate_certificates: true
  243. # Controls whether searching the public room list is enabled.
  244. matrix_synapse_enable_room_list_search: true
  245. # Controls who's allowed to create aliases on this server.
  246. matrix_synapse_alias_creation_rules:
  247. - user_id: "*"
  248. alias: "*"
  249. room_id: "*"
  250. action: allow
  251. # Controls who can publish and which rooms can be published in the public room list.
  252. matrix_synapse_room_list_publication_rules:
  253. - user_id: "*"
  254. alias: "*"
  255. room_id: "*"
  256. action: allow
  257. matrix_synapse_default_room_version: "5"
  258. # Controls the Synapse `spam_checker` setting.
  259. #
  260. # If a spam-checker extension is enabled, this variable's value is set automatically by the playbook during runtime.
  261. # If not, you can also control its value manually.
  262. matrix_synapse_spam_checker: ~
  263. matrix_synapse_trusted_key_servers:
  264. - server_name: "matrix.org"
  265. matrix_synapse_redaction_retention_period: 7d
  266. matrix_synapse_user_ips_max_age: 28d
  267. # Default Synapse configuration template which covers the generic use case.
  268. # You can customize it by controlling the various variables inside it.
  269. #
  270. # For a more advanced customization, you can extend the default (see `matrix_synapse_configuration_extension_yaml`)
  271. # or completely replace this variable with your own template.
  272. matrix_synapse_configuration_yaml: "{{ lookup('template', 'templates/synapse/homeserver.yaml.j2') }}"
  273. matrix_synapse_configuration_extension_yaml: |
  274. # Your custom YAML configuration for Synapse goes here.
  275. # This configuration extends the default starting configuration (`matrix_synapse_configuration_yaml`).
  276. #
  277. # You can override individual variables from the default configuration, or introduce new ones.
  278. #
  279. # If you need something more special, you can take full control by
  280. # completely redefining `matrix_synapse_configuration_yaml`.
  281. #
  282. # Example configuration extension follows:
  283. #
  284. # server_notices:
  285. # system_mxid_localpart: notices
  286. # system_mxid_display_name: "Server Notices"
  287. # system_mxid_avatar_url: "mxc://server.com/oumMVlgDnLYFaPVkExemNVVZ"
  288. # room_name: "Server Notices"
  289. matrix_synapse_configuration_extension: "{{ matrix_synapse_configuration_extension_yaml|from_yaml if matrix_synapse_configuration_extension_yaml|from_yaml is mapping else {} }}"
  290. # Holds the final Synapse configuration (a combination of the default and its extension).
  291. # You most likely don't need to touch this variable. Instead, see `matrix_synapse_configuration_yaml`.
  292. matrix_synapse_configuration: "{{ matrix_synapse_configuration_yaml|from_yaml|combine(matrix_synapse_configuration_extension, recursive=True) }}"