Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

597 lines
37 KiB

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