Matrix Docker Ansible eploy
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

164 satır
8.1 KiB

  1. # ma1sd is a Federated Matrix Identity Server
  2. # See: https://github.com/ma1uta/ma1sd
  3. matrix_ma1sd_enabled: true
  4. matrix_ma1sd_container_image_self_build: false
  5. matrix_ma1sd_container_image_self_build_repo: "https://github.com/ma1uta/ma1sd.git"
  6. matrix_ma1sd_container_image_self_build_branch: "{{ matrix_ma1sd_version }}"
  7. matrix_ma1sd_architecture: "amd64"
  8. matrix_ma1sd_version: "2.4.0"
  9. matrix_ma1sd_docker_image: "{{ matrix_ma1sd_docker_image_name_prefix }}ma1uta/ma1sd:{{ matrix_ma1sd_version }}-{{ matrix_ma1sd_architecture }}"
  10. matrix_ma1sd_docker_image_name_prefix: "{{ 'localhost/' if matrix_ma1sd_container_image_self_build else matrix_container_global_registry_prefix }}"
  11. matrix_ma1sd_docker_image_force_pull: "{{ matrix_ma1sd_docker_image.endswith(':latest') }}"
  12. matrix_ma1sd_base_path: "{{ matrix_base_data_path }}/ma1sd"
  13. # We need the docker src directory to be named ma1sd. See: https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/588
  14. matrix_ma1sd_docker_src_files_path: "{{ matrix_ma1sd_base_path }}/docker-src/ma1sd"
  15. matrix_ma1sd_config_path: "{{ matrix_ma1sd_base_path }}/config"
  16. matrix_ma1sd_data_path: "{{ matrix_ma1sd_base_path }}/data"
  17. # Controls whether the matrix-ma1sd container exposes its HTTP port (tcp/8090 in the container).
  18. #
  19. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8090"), or empty string to not expose.
  20. matrix_ma1sd_container_http_host_bind_port: ''
  21. # A list of extra arguments to pass to the container
  22. matrix_ma1sd_container_extra_arguments: []
  23. # List of systemd services that matrix-ma1sd.service depends on
  24. matrix_ma1sd_systemd_required_services_list: ['docker.service']
  25. # List of systemd services that matrix-ma1sd.service wants
  26. matrix_ma1sd_systemd_wanted_services_list: []
  27. # Your identity server is private by default.
  28. # To ensure maximum discovery, you can make your identity server
  29. # also forward lookups to the central matrix.org Identity server
  30. # (at the cost of potentially leaking all your contacts information).
  31. # Enabling this is discouraged. Learn more here: https://github.com/ma1uta/ma1sd/blob/master/docs/features/identity.md#lookups
  32. matrix_ma1sd_matrixorg_forwarding_enabled: false
  33. # Database-related configuration fields.
  34. #
  35. # To use SQLite, stick to these defaults.
  36. #
  37. # To use Postgres:
  38. # - change the engine (`matrix_ma1sd_database_engine: 'postgres'`)
  39. # - adjust your database credentials via the `matrix_ma1sd_postgres_*` variables
  40. matrix_ma1sd_database_engine: 'sqlite'
  41. matrix_ma1sd_sqlite_database_path_local: "{{ matrix_ma1sd_data_path }}/ma1sd.db"
  42. matrix_ma1sd_sqlite_database_path_in_container: "/var/ma1sd/ma1sd.db"
  43. matrix_ma1sd_database_username: 'matrix_ma1sd'
  44. matrix_ma1sd_database_password: 'some-password'
  45. matrix_ma1sd_database_hostname: 'matrix-postgres'
  46. matrix_ma1sd_database_port: 5432
  47. matrix_ma1sd_database_name: 'matrix_ma1sd'
  48. matrix_ma1sd_database_connection_string: 'postgresql://{{ matrix_ma1sd_database_username }}:{{ matrix_ma1sd_database_password }}@{{ matrix_ma1sd_database_hostname }}:{{ matrix_ma1sd_database_port }}/{{ matrix_ma1sd_database_name }}'
  49. # ma1sd has serveral supported identity stores.
  50. # One of them is storing identities directly in Synapse's database.
  51. # Learn more here: https://github.com/ma1uta/ma1sd/blob/master/docs/stores/synapse.md
  52. matrix_ma1sd_synapsesql_enabled: false
  53. matrix_ma1sd_synapsesql_type: ""
  54. matrix_ma1sd_synapsesql_connection: ""
  55. # Setting up email-sending settings is required for using ma1sd.
  56. matrix_ma1sd_threepid_medium_email_identity_from: "matrix@{{ matrix_domain }}"
  57. matrix_ma1sd_threepid_medium_email_connectors_smtp_host: ""
  58. matrix_ma1sd_threepid_medium_email_connectors_smtp_port: 587
  59. matrix_ma1sd_threepid_medium_email_connectors_smtp_tls: 1
  60. matrix_ma1sd_threepid_medium_email_connectors_smtp_login: ""
  61. matrix_ma1sd_threepid_medium_email_connectors_smtp_password: ""
  62. # DNS overwrites are useful for telling ma1sd how it can reach the homeserver directly.
  63. # Useful when reverse-proxying certain URLs (e.g. `/_matrix/client/r0/user_directory/search`) to ma1sd,
  64. # so that ma1sd can rewrite the original URL to one that would reach the homeserver.
  65. matrix_ma1sd_dns_overwrite_enabled: false
  66. matrix_ma1sd_dns_overwrite_homeserver_client_name: "{{ matrix_server_fqn_matrix }}"
  67. matrix_ma1sd_dns_overwrite_homeserver_client_value: "http://matrix-synapse:8008"
  68. # Override the default session templates
  69. # To use this, fill in the template variables with the full desired template as a multi-line YAML variable
  70. #
  71. # More info:
  72. # https://github.com/ma1uta/ma1sd/blob/master/docs/threepids/session/session-views.md
  73. matrix_ma1sd_view_session_custom_templates_enabled: false
  74. # Defaults to: https://github.com/ma1uta/ma1sd/blob/master/src/main/resources/templates/session/tokenSubmitSuccess.html
  75. matrix_ma1sd_view_session_custom_onTokenSubmit_success_template: ""
  76. # Defaults to: https://github.com/ma1uta/ma1sd/blob/master/src/main/resources/templates/session/tokenSubmitFailure.html
  77. matrix_ma1sd_view_session_custom_onTokenSubmit_failure_template: ""
  78. # Override the default email templates
  79. # To use this, fill in the template variables with the full desired template as a multi-line YAML variable
  80. #
  81. # More info:
  82. # https://github.com/ma1uta/ma1sd/blob/master/docs/threepids/notification/template-generator.md
  83. # https://github.com/ma1uta/ma1sd/tree/master/src/main/resources/threepids/email
  84. matrix_ma1sd_threepid_medium_email_custom_templates_enabled: false
  85. # Defaults to: https://github.com/ma1uta/ma1sd/blob/master/src/main/resources/threepids/email/invite-template.eml
  86. matrix_ma1sd_threepid_medium_email_custom_invite_template: ""
  87. # Defaults to: https://github.com/ma1uta/ma1sd/blob/master/src/main/resources/threepids/email/validate-template.eml
  88. matrix_ma1sd_threepid_medium_email_custom_session_validation_template: ""
  89. # Defaults to: https://github.com/ma1uta/ma1sd/blob/master/src/main/resources/threepids/email/unbind-notification.eml
  90. matrix_ma1sd_threepid_medium_email_custom_session_unbind_notification_template: ""
  91. # Defaults to: https://github.com/ma1uta/ma1sd/blob/master/src/main/resources/threepids/email/mxid-template.eml
  92. matrix_ma1sd_threepid_medium_email_custom_matrixid_template: ""
  93. # Controls whether the self-check feature should validate SSL certificates.
  94. matrix_ma1sd_self_check_validate_certificates: true
  95. # Controls ma1sd logging verbosity for troubleshooting.
  96. #
  97. # According to: https://github.com/ma1uta/ma1sd/blob/master/docs/troubleshooting.md#increase-verbosity
  98. matrix_ma1sd_verbose_logging: false
  99. # Setting up support for API prefixes
  100. matrix_ma1sd_v1_enabled: true
  101. matrix_ma1sd_v2_enabled: true
  102. # Fix for missing 3PIDS bug
  103. matrix_ma1sd_hashing_enabled: true
  104. # Default ma1sd configuration template which covers the generic use case.
  105. # You can customize it by controlling the various variables inside it.
  106. #
  107. # For a more advanced customization, you can extend the default (see `matrix_ma1sd_configuration_extension_yaml`)
  108. # or completely replace this variable with your own template.
  109. matrix_ma1sd_configuration_yaml: "{{ lookup('template', 'templates/ma1sd.yaml.j2') }}"
  110. matrix_ma1sd_configuration_extension_yaml: |
  111. # Your custom YAML configuration for ma1sd goes here.
  112. # This configuration extends the default starting configuration (`matrix_ma1sd_configuration_yaml`).
  113. #
  114. # You can override individual variables from the default configuration, or introduce new ones.
  115. #
  116. # If you need something more special, you can take full control by
  117. # completely redefining `matrix_ma1sd_configuration_yaml`.
  118. #
  119. # Example configuration extension follows:
  120. #
  121. # ldap:
  122. # enabled: true
  123. # connection:
  124. # host: ldapHostnameOrIp
  125. # tls: false
  126. # port: 389
  127. # baseDNs: ['OU=Users,DC=example,DC=org']
  128. # bindDn: CN=My Ma1sd User,OU=Users,DC=example,DC=org
  129. # bindPassword: TheUserPassword
  130. matrix_ma1sd_configuration_extension: "{{ matrix_ma1sd_configuration_extension_yaml|from_yaml if matrix_ma1sd_configuration_extension_yaml|from_yaml is mapping else {} }}"
  131. # Holds the final ma1sd configuration (a combination of the default and its extension).
  132. # You most likely don't need to touch this variable. Instead, see `matrix_ma1sd_configuration_yaml`.
  133. matrix_ma1sd_configuration: "{{ matrix_ma1sd_configuration_yaml|from_yaml|combine(matrix_ma1sd_configuration_extension, recursive=True) }}"