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

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