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.
 
 

89 lines
4.2 KiB

  1. {#
  2. SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  3. SPDX-License-Identifier: AGPL-3.0-or-later
  4. #}
  5. #jinja2: lstrip_blocks: "True"
  6. http:
  7. listeners:
  8. - name: web
  9. resources:
  10. - name: discovery
  11. - name: human
  12. - name: oauth
  13. - name: compat
  14. - name: graphql
  15. - name: assets
  16. binds:
  17. - address: '[::]:8080'
  18. proxy_protocol: false
  19. prefix: {{ matrix_authentication_service_path_prefix }}
  20. - name: internal
  21. resources:
  22. - name: health
  23. binds:
  24. - host: localhost
  25. port: 8081
  26. proxy_protocol: false
  27. prefix: {{ matrix_authentication_service_path_prefix }}
  28. trusted_proxies: {{ matrix_authentication_service_config_http_trusted_proxies | to_json }}
  29. public_base: {{ matrix_authentication_service_config_http_public_base | to_json }}
  30. issuer: {{ matrix_authentication_service_config_http_issuer | to_json }}
  31. database:
  32. host: {{ matrix_authentication_service_config_database_host | to_json }}
  33. port: {{ matrix_authentication_service_config_database_port | to_json }}
  34. username: {{ matrix_authentication_service_config_database_username | to_json }}
  35. password: {{ matrix_authentication_service_config_database_password | to_json }}
  36. database: {{ matrix_authentication_service_config_database_database | to_json }}
  37. ssl_mode: {{ matrix_authentication_service_config_database_ssl_mode | to_json }}
  38. max_connections: {{ matrix_authentication_service_config_database_max_connections | to_json }}
  39. min_connections: {{ matrix_authentication_service_config_database_min_connections | to_json }}
  40. connect_timeout: {{ matrix_authentication_service_config_database_connect_timeout | to_json }}
  41. idle_timeout: {{ matrix_authentication_service_config_database_idle_timeout | to_json }}
  42. max_lifetime: {{ matrix_authentication_service_config_database_max_lifetime | to_json }}
  43. email:
  44. from: {{ matrix_authentication_service_config_email_from | to_json }}
  45. reply_to: {{ matrix_authentication_service_config_email_reply_to | to_json }}
  46. transport: {{ matrix_authentication_service_config_email_transport | to_json }}
  47. {% if matrix_authentication_service_config_email_transport == 'smtp' %}
  48. mode: {{ matrix_authentication_service_config_email_mode | to_json }}
  49. hostname: {{ matrix_authentication_service_config_email_hostname | to_json }}
  50. port: {{ matrix_authentication_service_config_email_port | int | to_json }}
  51. {% if matrix_authentication_service_config_email_username %}
  52. username: {{ matrix_authentication_service_config_email_username | to_json }}
  53. {% endif %}
  54. {% if matrix_authentication_service_config_email_password %}
  55. password: {{ matrix_authentication_service_config_email_password | to_json }}
  56. {% endif %}
  57. {% endif %}
  58. secrets:
  59. encryption: {{ matrix_authentication_service_config_secrets_encryption | to_json }}
  60. keys: {{ matrix_authentication_service_config_secrets_keys | to_json }}
  61. passwords:
  62. enabled: {{ matrix_authentication_service_config_passwords_enabled | to_json }}
  63. schemes: {{ matrix_authentication_service_config_passwords_schemes | to_json }}
  64. minimum_complexity: {{ matrix_authentication_service_config_passwords_minimum_complexity | to_json }}
  65. matrix:
  66. homeserver: {{ matrix_authentication_service_config_matrix_homeserver | to_json }}
  67. secret: {{ matrix_authentication_service_config_matrix_secret | to_json }}
  68. endpoint: {{ matrix_authentication_service_config_matrix_endpoint | to_json }}
  69. account:
  70. email_change_allowed: {{ matrix_authentication_service_config_account_email_change_allowed | to_json }}
  71. displayname_change_allowed: {{ matrix_authentication_service_config_account_displayname_change_allowed | to_json }}
  72. password_registration_enabled: {{ matrix_authentication_service_config_account_password_registration_enabled | to_json }}
  73. password_change_allowed: {{ matrix_authentication_service_config_account_password_change_allowed | to_json }}
  74. password_recovery_enabled: {{ matrix_authentication_service_config_account_password_recovery_enabled | to_json }}
  75. clients: {{ matrix_authentication_service_config_clients | to_json }}
  76. {% if matrix_authentication_service_config_upstream_oauth2_providers | length > 0 %}
  77. upstream_oauth2:
  78. providers: {{ matrix_authentication_service_config_upstream_oauth2_providers | to_json }}
  79. {% endif %}