Matrix Docker Ansible eploy
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

83 lines
4.1 KiB

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