Matrix Docker Ansible eploy
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

607 Zeilen
37 KiB

  1. # SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. # matrix-authentication-service (MAS) is an OAuth 2.0 and OpenID Provider server for Matrix.
  6. # Project source code URL: https://github.com/element-hq/matrix-authentication-service
  7. matrix_authentication_service_enabled: true
  8. matrix_authentication_service_hostname: ''
  9. # Controls the path prefix for the authentication service.
  10. # This value must either be `/` or not end with a slash (e.g. `/auth`).
  11. matrix_authentication_service_path_prefix: /
  12. matrix_authentication_service_container_image_self_build: false
  13. matrix_authentication_service_container_repo: "https://github.com/element-hq/matrix-authentication-service.git"
  14. matrix_authentication_service_container_repo_version: "{{ 'main' if matrix_authentication_service_version == 'latest' else ('v' + matrix_authentication_service_version) }}"
  15. matrix_authentication_service_container_src_files_path: "{{ matrix_base_data_path }}/matrix-authentication-service/container-src"
  16. # renovate: datasource=docker depName=ghcr.io/element-hq/matrix-authentication-service
  17. matrix_authentication_service_version: 0.12.0
  18. matrix_authentication_service_container_image: "{{ matrix_authentication_service_container_image_name_prefix }}element-hq/matrix-authentication-service:{{ matrix_authentication_service_version }}"
  19. matrix_authentication_service_container_image_name_prefix: "{{ 'localhost/' if matrix_authentication_service_container_image_self_build else 'ghcr.io/' }}"
  20. matrix_authentication_service_container_image_force_pull: "{{ matrix_authentication_service_container_image.endswith(':latest') }}"
  21. matrix_authentication_service_base_path: "{{ matrix_base_data_path }}/matrix-authentication-service"
  22. matrix_authentication_service_bin_path: "{{ matrix_authentication_service_base_path }}/bin"
  23. matrix_authentication_service_config_path: "{{ matrix_authentication_service_base_path }}/config"
  24. matrix_authentication_service_data_path: "{{ matrix_authentication_service_base_path }}/data"
  25. matrix_authentication_service_data_keys_path: "{{ matrix_authentication_service_data_path }}/keys"
  26. matrix_authentication_service_uid: "{{ matrix_user_uid }}"
  27. matrix_authentication_service_gid: "{{ matrix_user_gid }}"
  28. matrix_authentication_service_container_network: ""
  29. matrix_authentication_service_container_additional_networks: "{{ matrix_authentication_service_container_additional_networks_auto + matrix_authentication_service_container_additional_networks_custom }}"
  30. matrix_authentication_service_container_additional_networks_auto: []
  31. matrix_authentication_service_container_additional_networks_custom: []
  32. # A list of extra arguments to pass to the container
  33. matrix_authentication_service_container_extra_arguments: []
  34. # List of systemd services that matrix-authentication-service.service depends on
  35. matrix_authentication_service_systemd_required_services_list: "{{ matrix_authentication_service_systemd_required_services_list_default + matrix_authentication_service_systemd_required_services_list_auto + matrix_authentication_service_systemd_required_services_list_custom }}"
  36. matrix_authentication_service_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  37. matrix_authentication_service_systemd_required_services_list_auto: []
  38. matrix_authentication_service_systemd_required_services_list_custom: []
  39. # List of systemd services that matrix-authentication-service.service wants
  40. matrix_authentication_service_systemd_wanted_services_list: "{{ matrix_authentication_service_systemd_wanted_services_list_auto + matrix_authentication_service_systemd_wanted_services_list_custom }}"
  41. matrix_authentication_service_systemd_wanted_services_list_auto: []
  42. matrix_authentication_service_systemd_wanted_services_list_custom: []
  43. ########################################################################################
  44. # #
  45. # Key management #
  46. # #
  47. ########################################################################################
  48. # Controls whether the playbook will manage the secrets keys for you.
  49. #
  50. # See:
  51. # - matrix_authentication_service_config_secrets_keys
  52. # - matrix_authentication_service_key_management_*
  53. matrix_authentication_service_key_management_enabled: true
  54. matrix_authentication_service_key_management_list: "{{ matrix_authentication_service_key_management_list_default + matrix_authentication_service_key_management_list_custom }}"
  55. matrix_authentication_service_key_management_list_default: |-
  56. {{
  57. (
  58. ([
  59. {
  60. "config": {
  61. "kid": matrix_authentication_service_key_management_rsa_2048_key_id,
  62. "key_file": ("/keys/" + matrix_authentication_service_key_management_rsa_2048_key_file),
  63. },
  64. "key_file": matrix_authentication_service_key_management_rsa_2048_key_file,
  65. "generation_command": matrix_authentication_service_key_management_rsa_2048_generation_command,
  66. }
  67. ] if matrix_authentication_service_key_management_rsa_2048_enabled else [])
  68. +
  69. ([
  70. {
  71. "config": {
  72. "kid": matrix_authentication_service_key_management_ecdsa_p256_key_id,
  73. "key_file": ("/keys/" + matrix_authentication_service_key_management_ecdsa_p256_key_file),
  74. },
  75. "key_file": matrix_authentication_service_key_management_ecdsa_p256_key_file,
  76. "generation_command": matrix_authentication_service_key_management_ecdsa_p256_generation_command,
  77. }
  78. ] if matrix_authentication_service_key_management_ecdsa_p256_enabled else [])
  79. +
  80. ([
  81. {
  82. "config": {
  83. "kid": matrix_authentication_service_key_management_ecdsa_p384_key_id,
  84. "key_file": ("/keys/" + matrix_authentication_service_key_management_ecdsa_p384_key_file),
  85. },
  86. "key_file": matrix_authentication_service_key_management_ecdsa_p384_key_file,
  87. "generation_command": matrix_authentication_service_key_management_ecdsa_p384_generation_command,
  88. }
  89. ] if matrix_authentication_service_key_management_ecdsa_p384_enabled else [])
  90. +
  91. ([
  92. {
  93. "config": {
  94. "kid": matrix_authentication_service_key_management_ecdsa_k256_key_id,
  95. "key_file": ("/keys/" + matrix_authentication_service_key_management_ecdsa_k256_key_file),
  96. },
  97. "key_file": matrix_authentication_service_key_management_ecdsa_k256_key_file,
  98. "generation_command": matrix_authentication_service_key_management_ecdsa_k256_generation_command,
  99. }
  100. ] if matrix_authentication_service_key_management_ecdsa_k256_enabled else [])
  101. )
  102. if matrix_authentication_service_key_management_enabled
  103. else []
  104. }}
  105. matrix_authentication_service_key_management_list_custom: []
  106. matrix_authentication_service_key_management_rsa_2048_enabled: true
  107. matrix_authentication_service_key_management_rsa_2048_key_id: default-rsa
  108. matrix_authentication_service_key_management_rsa_2048_key_file: rsa-2048.priv.pem
  109. matrix_authentication_service_key_management_rsa_2048_generation_command: "openssl genpkey -algorithm RSA -out __KEY_FILE_PATH__ -pkeyopt rsa_keygen_bits:2048"
  110. matrix_authentication_service_key_management_ecdsa_p256_enabled: true
  111. matrix_authentication_service_key_management_ecdsa_p256_key_id: default-ecdsa-p256
  112. matrix_authentication_service_key_management_ecdsa_p256_key_file: ecdsa-p256.priv.pem
  113. matrix_authentication_service_key_management_ecdsa_p256_generation_command: "openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:prime256v1 -out __KEY_FILE_PATH__ -outform PEM"
  114. matrix_authentication_service_key_management_ecdsa_p384_enabled: true
  115. matrix_authentication_service_key_management_ecdsa_p384_key_id: default-ecdsa-p384
  116. matrix_authentication_service_key_management_ecdsa_p384_key_file: ecdsa-p384.priv.pem
  117. matrix_authentication_service_key_management_ecdsa_p384_generation_command: "openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:secp384r1 -out __KEY_FILE_PATH__ -outform PEM"
  118. matrix_authentication_service_key_management_ecdsa_k256_enabled: true
  119. matrix_authentication_service_key_management_ecdsa_k256_key_id: default-ecdsa-k256
  120. matrix_authentication_service_key_management_ecdsa_k256_key_file: ecdsa-k256.priv.pem
  121. matrix_authentication_service_key_management_ecdsa_k256_generation_command: "openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:secp256k1 -out __KEY_FILE_PATH__ -outform PEM"
  122. ########################################################################################
  123. # #
  124. # /Key management #
  125. # #
  126. ########################################################################################
  127. ########################################################################################
  128. # #
  129. # Email configuration #
  130. # #
  131. ########################################################################################
  132. # Controls the `email.from` configuration setting.
  133. matrix_authentication_service_config_email_from: '"{{ matrix_authentication_service_config_email_from_name }}" <{{ matrix_authentication_service_config_email_from_address }}>'
  134. matrix_authentication_service_config_email_from_name: 'Matrix Authentication Service'
  135. matrix_authentication_service_config_email_from_address: "matrix@{{ matrix_domain }}"
  136. # Controls the `email.reply_to` configuration setting.
  137. matrix_authentication_service_config_email_reply_to: '"{{ matrix_authentication_service_config_email_reply_to_name }}" <{{ matrix_authentication_service_config_email_reply_to_address }}>'
  138. matrix_authentication_service_config_email_reply_to_name: "{{ matrix_authentication_service_config_email_from_name }}"
  139. matrix_authentication_service_config_email_reply_to_address: "{{ matrix_authentication_service_config_email_from_address }}"
  140. # Controls the `email.transport` configuration setting.
  141. #
  142. # Valid options are: blackhole, smtp, aws_ses
  143. # Upstream reports that `sendmail` is supported as well,
  144. # but this is not true when running it in a container image due to the `sendmail` binary not being included.
  145. matrix_authentication_service_config_email_transport: blackhole
  146. # Controls the `email.mode` configuration setting for SMTP.
  147. # Options are 'plain', 'tls', or 'starttls'.
  148. matrix_authentication_service_config_email_mode: plain
  149. # Controls the `email.hostname` configuration setting for SMTP.
  150. matrix_authentication_service_config_email_hostname: ""
  151. # Controls the `email.port` configuration setting for SMTP.
  152. matrix_authentication_service_config_email_port: 587
  153. # Controls the `email.username` configuration setting for SMTP.
  154. matrix_authentication_service_config_email_username: ""
  155. # Controls the `email.password` configuration setting for SMTP.
  156. matrix_authentication_service_config_email_password: ""
  157. ########################################################################################
  158. # #
  159. # /Email configuration #
  160. # #
  161. ########################################################################################
  162. ########################################################################################
  163. # #
  164. # Account configuration #
  165. # #
  166. ########################################################################################
  167. # Controls the `account.email_change_allowed` configuration setting.
  168. #
  169. # Whether users are allowed to change their email addresses.
  170. matrix_authentication_service_config_account_email_change_allowed: true
  171. # Controls the `account.displayname_change_allowed` configuration setting.
  172. #
  173. # Whether users are allowed to change their display names.
  174. # This should be in sync with the policy in the homeserver configuration.
  175. matrix_authentication_service_config_account_displayname_change_allowed: true
  176. # Controls the `account.password_registration_enabled` configuration setting.
  177. #
  178. # Whether to enable self-service password registration.
  179. # This has no effect if password login is disabled.
  180. matrix_authentication_service_config_account_password_registration_enabled: false
  181. # Controls the `account.password_change_allowed` configuration setting.
  182. #
  183. # Whether users are allowed to change their passwords.
  184. # This has no effect if password login is disabled.
  185. matrix_authentication_service_config_account_password_change_allowed: true
  186. # Controls the `account.password_recovery_enabled` configuration setting.
  187. #
  188. # Whether email-based password recovery is enabled
  189. # This has no effect if password login is disabled.
  190. matrix_authentication_service_config_account_password_recovery_enabled: false
  191. ########################################################################################
  192. # #
  193. # /Account configuration #
  194. # #
  195. ########################################################################################
  196. ########################################################################################
  197. # #
  198. # Database configuration #
  199. # #
  200. ########################################################################################
  201. # Controls the `database.username` configuration setting.
  202. matrix_authentication_service_config_database_username: 'matrix_authentication_service'
  203. # Controls the `database.password` configuration setting.
  204. matrix_authentication_service_config_database_password: ''
  205. # Controls the `database.host` configuration setting.
  206. matrix_authentication_service_config_database_host: ''
  207. # Controls the `database.port` configuration setting.
  208. matrix_authentication_service_config_database_port: 5432
  209. # Controls the `database.database` configuration setting.
  210. matrix_authentication_service_config_database_database: 'matrix_authentication_service'
  211. # Controls the `database.ssl_mode` configuration setting.
  212. matrix_authentication_service_config_database_ssl_mode: disable
  213. # Controls the `database.max_connections` configuration setting.
  214. matrix_authentication_service_config_database_max_connections: 10
  215. # Controls the `database.min_connections` configuration setting.
  216. matrix_authentication_service_config_database_min_connections: 0
  217. # Controls the `database.connect_timeout` configuration setting.
  218. matrix_authentication_service_config_database_connect_timeout: 30
  219. # Controls the `database.idle_timeout` configuration setting.
  220. matrix_authentication_service_config_database_idle_timeout: 600
  221. # Controls the `database.max_lifetime` configuration setting.
  222. matrix_authentication_service_config_database_max_lifetime: 1800
  223. ########################################################################################
  224. # #
  225. # /Database configuration #
  226. # #
  227. ########################################################################################
  228. ########################################################################################
  229. # #
  230. # Secrets configuration #
  231. # #
  232. ########################################################################################
  233. # Controls the `secrets.encryption` configuration setting.
  234. matrix_authentication_service_config_secrets_encryption: ''
  235. # Controls the `secrets.keys` configuration setting.
  236. matrix_authentication_service_config_secrets_keys: |-
  237. {{
  238. matrix_authentication_service_key_management_list | map(attribute='config') | list
  239. if matrix_authentication_service_key_management_enabled
  240. else []
  241. }}
  242. ########################################################################################
  243. # #
  244. # /Secrets configuration #
  245. # #
  246. ########################################################################################
  247. ########################################################################################
  248. # #
  249. # HTTP configuration #
  250. # #
  251. ########################################################################################
  252. # Controls the `http.public_base` configuration setting.
  253. matrix_authentication_service_config_http_public_base: "https://{{ matrix_authentication_service_hostname }}{{ '/' if matrix_authentication_service_path_prefix == '/' else (matrix_authentication_service_path_prefix + '/') }}"
  254. # Controls the `http.issuer` configuration setting.
  255. matrix_authentication_service_config_http_issuer: "{{ matrix_authentication_service_config_http_public_base }}"
  256. # Controls the `http.trusted_proxies` configuration setting.
  257. matrix_authentication_service_config_http_trusted_proxies:
  258. - 192.168.0.0/16
  259. - 172.16.0.0/12
  260. - 10.0.0.0/10
  261. - 127.0.0.1/8
  262. - fd00::/8
  263. - ::1/128
  264. ########################################################################################
  265. # #
  266. # /HTTP configuration #
  267. # #
  268. ########################################################################################
  269. ########################################################################################
  270. # #
  271. # Matrix configuration #
  272. # #
  273. ########################################################################################
  274. # Controls the `matrix.homeserver` configuration setting.
  275. # The homeserver name, as per the `server_name` in the Synapse configuration file.
  276. matrix_authentication_service_config_matrix_homeserver: ""
  277. # Controls the `matrix.endpoint` configuration setting.
  278. # URL to which the homeserver is accessible from the service
  279. matrix_authentication_service_config_matrix_endpoint: ""
  280. # Controls the `matrix.secret` configuration setting.
  281. matrix_authentication_service_config_matrix_secret: ""
  282. ########################################################################################
  283. # #
  284. # /Matrix configuration #
  285. # #
  286. ########################################################################################
  287. ########################################################################################
  288. # #
  289. # Passwords configuration #
  290. # #
  291. ########################################################################################
  292. # Controls the `passwords.enabled` configuration setting.
  293. # Whether to enable the password database.
  294. # If disabled, users will only be able to log in using upstream OIDC providers
  295. matrix_authentication_service_config_passwords_enabled: true
  296. # Controls the `passwords.schemes` configuration setting.
  297. # List of password hashing schemes being used.
  298. # Only change this if you know what you're doing
  299. matrix_authentication_service_config_passwords_schemes:
  300. - version: 1
  301. algorithm: argon2id
  302. # Controls the `passwords.minimum_complexity` configuration setting.
  303. # Minimum complexity required for passwords, estimated by the zxcvbn algorithm
  304. # Must be between 0 and 4, default is 3
  305. # See https://github.com/dropbox/zxcvbn#usage for more information
  306. matrix_authentication_service_config_passwords_minimum_complexity: 3
  307. ########################################################################################
  308. # #
  309. # /Passwords configuration #
  310. # #
  311. ########################################################################################
  312. ########################################################################################
  313. # #
  314. # Clients configuration #
  315. # #
  316. ########################################################################################
  317. # Controls the `clients` configuration setting.
  318. # List of clients to be used by the authentication service.
  319. #
  320. # See:
  321. # - https://element-hq.github.io/matrix-authentication-service/reference/configuration.html#clients
  322. # - https://element-hq.github.io/matrix-authentication-service/setup/homeserver.html#provision-a-client-for-the-homeserver-to-use
  323. #
  324. # To define your own, use `matrix_authentication_service_config_clients_custom`.
  325. matrix_authentication_service_config_clients: "{{ matrix_authentication_service_config_clients_auto + matrix_authentication_service_config_clients_custom }}"
  326. matrix_authentication_service_config_clients_auto: []
  327. matrix_authentication_service_config_clients_custom: []
  328. ########################################################################################
  329. # #
  330. # /Clients configuration #
  331. # #
  332. ########################################################################################
  333. ########################################################################################
  334. # #
  335. # Upstream OAuth2 configuration #
  336. # #
  337. ########################################################################################
  338. # Controls the `upstream_oauth2.providers` configuration setting.
  339. # See:
  340. # - https://element-hq.github.io/matrix-authentication-service/reference/configuration.html#upstream_oauth2providers
  341. matrix_authentication_service_config_upstream_oauth2_providers: []
  342. ########################################################################################
  343. # #
  344. # /Upstream OAuth2 configuration #
  345. # #
  346. ########################################################################################
  347. # Holds the final Matrix Authentication Service configuration (a combination of the default and its extension).
  348. # You most likely don't need to touch this variable. Instead, see `matrix_authentication_service_configuration_yaml` or `matrix_authentication_service_configuration_extension_yaml`.
  349. matrix_authentication_service_configuration: "{{ matrix_authentication_service_configuration_yaml | from_yaml | combine(matrix_authentication_service_configuration_extension, recursive=True) }}"
  350. # Default Matrix Authentication Service configuration template which covers the generic use case.
  351. # You can customize it by controlling the various variables inside it.
  352. #
  353. # For a more advanced customization, you can extend the default (see `matrix_authentication_service_configuration_extension_yaml`)
  354. # or completely replace this variable with your own template.
  355. matrix_authentication_service_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  356. matrix_authentication_service_configuration_extension_yaml: |
  357. # Your custom YAML configuration for Matrix Authentication Service goes here.
  358. # This configuration extends the default starting configuration (`matrix_authentication_service_configuration_yaml`).
  359. #
  360. # You can override individual variables from the default configuration, or introduce new ones.
  361. #
  362. # If you need something more special, you can take full control by
  363. # completely redefining `matrix_authentication_service_configuration_yaml`.
  364. #
  365. # Example configuration extension follows:
  366. #
  367. # user:
  368. # password: something
  369. matrix_authentication_service_configuration_extension: "{{ matrix_authentication_service_configuration_extension_yaml | from_yaml if matrix_authentication_service_configuration_extension_yaml | from_yaml is mapping else {} }}"
  370. # Additional environment variables to pass to the Matrix Authentication Service container.
  371. #
  372. # Environment variables take priority over settings in the configuration file.
  373. #
  374. # Example:
  375. # matrix_authentication_service_environment_variables_extension: |
  376. # KEY=value
  377. matrix_authentication_service_environment_variables_extension: ''
  378. ########################################################################################
  379. # #
  380. # Labels #
  381. # #
  382. ########################################################################################
  383. # matrix_authentication_service_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  384. # See `../templates/labels.j2` for details.
  385. #
  386. # To inject your own other container labels, see `matrix_authentication_service_container_labels_additional_labels`.
  387. matrix_authentication_service_container_labels_traefik_enabled: true
  388. matrix_authentication_service_container_labels_traefik_docker_network: "{{ matrix_authentication_service_container_network }}"
  389. matrix_authentication_service_container_labels_traefik_entrypoints: web-secure
  390. matrix_authentication_service_container_labels_traefik_tls_certResolver: default # noqa var-naming
  391. matrix_authentication_service_container_labels_public_main_hostname: "{{ matrix_authentication_service_hostname }}"
  392. # The path prefix must either be `/` or not end with a slash (e.g. `/auth`).
  393. matrix_authentication_service_container_labels_public_main_path_prefix: "{{ matrix_authentication_service_path_prefix }}"
  394. matrix_authentication_service_container_labels_public_main_rule: "Host(`{{ matrix_authentication_service_container_labels_public_main_hostname }}`){% if matrix_authentication_service_container_labels_public_main_path_prefix != '/' %} && PathPrefix(`{{ matrix_authentication_service_container_labels_public_main_path_prefix }}`){% endif %}"
  395. matrix_authentication_service_container_labels_public_main_priority: 0
  396. matrix_authentication_service_container_labels_public_main_entrypoints: "{{ matrix_authentication_service_container_labels_traefik_entrypoints }}"
  397. matrix_authentication_service_container_labels_public_main_tls: "{{ matrix_authentication_service_container_labels_public_main_entrypoints != 'web' }}"
  398. matrix_authentication_service_container_labels_public_main_tls_certResolver: "{{ matrix_authentication_service_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  399. # Controls whether labels will be added to expose the compatibility layer publicly.
  400. #
  401. # The service exposes a compatibility layer to allow legacy clients to authenticate using the service.
  402. # This works by exposing a few Matrix endpoints that should be proxied to the service.
  403. # The following Matrix Client-Server API endpoints need to be handled by the authentication service:
  404. # - /_matrix/client/*/login
  405. # - /_matrix/client/*/logout
  406. # - /_matrix/client/*/refresh
  407. #
  408. # See:
  409. # - https://element-hq.github.io/matrix-authentication-service/setup/homeserver.html#set-up-the-compatibility-layer
  410. # - https://element-hq.github.io/matrix-authentication-service/setup/reverse-proxy.html#compatibility-layer
  411. #
  412. # Regardless of whether this is enabled, it may or may not take effect due to the value of other variables.
  413. # See `matrix_authentication_service_container_labels_traefik_enabled`
  414. matrix_authentication_service_container_labels_public_compatibility_layer_enabled: false
  415. matrix_authentication_service_container_labels_public_compatibility_layer_hostname: ""
  416. matrix_authentication_service_container_labels_public_compatibility_layer_path_regexp: "^/_matrix/client/(?P<version>([^/]+))/(?P<endpoint>(login|logout|refresh))"
  417. matrix_authentication_service_container_labels_public_compatibility_layer_rule: "Host(`{{ matrix_authentication_service_container_labels_public_compatibility_layer_hostname }}`) && PathRegexp(`{{ matrix_authentication_service_container_labels_public_compatibility_layer_path_regexp }}`)"
  418. matrix_authentication_service_container_labels_public_compatibility_layer_priority: 0
  419. matrix_authentication_service_container_labels_public_compatibility_layer_entrypoints: "{{ matrix_authentication_service_container_labels_traefik_entrypoints }}"
  420. matrix_authentication_service_container_labels_public_compatibility_layer_tls: "{{ matrix_authentication_service_container_labels_public_compatibility_layer_entrypoints != 'web' }}"
  421. matrix_authentication_service_container_labels_public_compatibility_layer_tls_certResolver: "{{ matrix_authentication_service_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  422. # Controls whether labels will be added to expose the compatibility layer on the internal Traefik entrypoint.
  423. # This is similar to `matrix_authentication_service_container_labels_public_compatibility_layer_enabled`, but the entrypoint and intent is different.
  424. # Regardless of whether this is enabled, it may or may not take effect due to the value of other variables.
  425. # See `matrix_authentication_service_container_labels_traefik_enabled`
  426. matrix_authentication_service_container_labels_internal_compatibility_layer_enabled: false
  427. matrix_authentication_service_container_labels_internal_compatibility_layer_path_regexp: "{{ matrix_authentication_service_container_labels_public_compatibility_layer_path_regexp }}"
  428. matrix_authentication_service_container_labels_internal_compatibility_layer_rule: "PathRegexp(`{{ matrix_authentication_service_container_labels_internal_compatibility_layer_path_regexp }}`)"
  429. matrix_authentication_service_container_labels_internal_compatibility_layer_priority: 0
  430. matrix_authentication_service_container_labels_internal_compatibility_layer_entrypoints: ""
  431. # Controls which additional headers to attach to all HTTP responses.
  432. # To add your own headers, use `matrix_authentication_service_container_labels_traefik_additional_response_headers_custom`
  433. matrix_authentication_service_container_labels_traefik_additional_response_headers: "{{ matrix_authentication_service_container_labels_traefik_additional_response_headers_auto | combine(matrix_authentication_service_container_labels_traefik_additional_response_headers_custom) }}"
  434. matrix_authentication_service_container_labels_traefik_additional_response_headers_auto: {}
  435. matrix_authentication_service_container_labels_traefik_additional_response_headers_custom: {}
  436. # matrix_authentication_service_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  437. # See `../templates/labels.j2` for details.
  438. #
  439. # Example:
  440. # matrix_authentication_service_container_labels_additional_labels: |
  441. # my.label=1
  442. # another.label="here"
  443. matrix_authentication_service_container_labels_additional_labels: ''
  444. ########################################################################################
  445. # #
  446. # /Labels #
  447. # #
  448. ########################################################################################
  449. ########################################################################################
  450. # #
  451. # syn2mas configuration #
  452. # #
  453. ########################################################################################
  454. matrix_authentication_service_syn2mas_start_wait_time_seconds: 5
  455. matrix_authentication_service_syn2mas_dry_run: false
  456. # renovate: datasource=docker depName=ghcr.io/element-hq/matrix-authentication-service/syn2mas
  457. matrix_authentication_service_syn2mas_version: 0.12.0
  458. matrix_authentication_service_syn2mas_container_image: "{{ matrix_authentication_service_container_image_name_prefix }}element-hq/matrix-authentication-service/syn2mas:{{ matrix_authentication_service_syn2mas_version }}"
  459. matrix_authentication_service_syn2mas_container_image_name_prefix: "{{ 'localhost/' if matrix_authentication_service_container_image_self_build else 'ghcr.io/' }}"
  460. matrix_authentication_service_syn2mas_container_image_force_pull: "{{ matrix_authentication_service_syn2mas_container_image.endswith(':latest') }}"
  461. matrix_authentication_service_syn2mas_container_image_self_build: "{{ matrix_authentication_service_container_image_self_build }}"
  462. matrix_authentication_service_syn2mas_container_network: "{{ matrix_authentication_service_container_network }}"
  463. # Path to Synapse's homeserver.yaml configuration file.
  464. matrix_authentication_service_syn2mas_synapse_homeserver_config_path: ""
  465. # Additional arguments passed to the syn2mas process.
  466. #
  467. # Example:
  468. # matrix_authentication_service_syn2mas_process_extra_arguments:
  469. # - "--upstreamProviderMapping oidc-keycloak:01H8PKNWKKRPCBW4YGH1RWV279"
  470. matrix_authentication_service_syn2mas_process_extra_arguments: []
  471. ########################################################################################
  472. # #
  473. # /syn2mas configuration #
  474. # #
  475. ########################################################################################
  476. ########################################################################################
  477. # #
  478. # Misc #
  479. # #
  480. ########################################################################################
  481. # Controls whether a migration from a homeserver user database to Matrix Authentication Service is in progress.
  482. #
  483. # When this is set to `true`, the playbook will:
  484. #
  485. # - disable the integration between the homeserver and Matrix Authentication Service
  486. # - avoid setting up the "compatibility layer" (that is, avoid installing container labels that capture login endpoints like `/_matrix/client/*/login`, etc.)
  487. matrix_authentication_service_migration_in_progress: false
  488. ########################################################################################
  489. # #
  490. # /Misc #
  491. # #
  492. ########################################################################################