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

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