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

171 строка
7.4 KiB

  1. # mxisd is a Federated Matrix Identity Server
  2. # See: https://github.com/kamax-matrix/mxisd
  3. matrix_mxisd_enabled: true
  4. matrix_mxisd_docker_image: "kamax/mxisd:1.4.6"
  5. matrix_mxisd_docker_image_force_pull: "{{ matrix_mxisd_docker_image.endswith(':latest') }}"
  6. matrix_mxisd_base_path: "{{ matrix_base_data_path }}/mxisd"
  7. matrix_mxisd_config_path: "{{ matrix_mxisd_base_path }}/config"
  8. matrix_mxisd_data_path: "{{ matrix_mxisd_base_path }}/data"
  9. # Controls whether the matrix-mxisd container exposes its HTTP port (tcp/8090 in the container).
  10. #
  11. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8090"), or empty string to not expose.
  12. matrix_mxisd_container_http_host_bind_port: ''
  13. # A list of extra arguments to pass to the container
  14. matrix_mxisd_container_extra_arguments: []
  15. # List of systemd services that matrix-mxisd.service depends on
  16. matrix_mxisd_systemd_required_services_list: ['docker.service']
  17. # List of systemd services that matrix-mxisd.service wants
  18. matrix_mxisd_systemd_wanted_services_list: []
  19. # Your identity server is private by default.
  20. # To ensure maximum discovery, you can make your identity server
  21. # also forward lookups to the central matrix.org Identity server
  22. # (at the cost of potentially leaking all your contacts information).
  23. # Enabling this is discouraged. Learn more here: https://github.com/kamax-io/mxisd/blob/master/docs/features/identity.md#lookups
  24. matrix_mxisd_matrixorg_forwarding_enabled: false
  25. # mxisd has serveral supported identity stores.
  26. # One of them is storing identities directly in Synapse's database.
  27. # Learn more here: https://github.com/kamax-matrix/mxisd/blob/master/docs/stores/synapse.md
  28. matrix_mxisd_synapsesql_enabled: false
  29. matrix_mxisd_synapsesql_type: ""
  30. matrix_mxisd_synapsesql_connection: ""
  31. # Setting up email-sending settings is required for using mxisd.
  32. matrix_mxisd_threepid_medium_email_identity_from: "matrix@{{ matrix_domain }}"
  33. matrix_mxisd_threepid_medium_email_connectors_smtp_host: ""
  34. matrix_mxisd_threepid_medium_email_connectors_smtp_port: 587
  35. matrix_mxisd_threepid_medium_email_connectors_smtp_tls: 1
  36. matrix_mxisd_threepid_medium_email_connectors_smtp_login: ""
  37. matrix_mxisd_threepid_medium_email_connectors_smtp_password: ""
  38. # DNS overwrites are useful for telling mxisd how it can reach the homeserver directly.
  39. # Useful when reverse-proxying certain URLs (e.g. `/_matrix/client/r0/user_directory/search`) to mxisd,
  40. # so that mxisd can rewrite the original URL to one that would reach the homeserver.
  41. matrix_mxisd_dns_overwrite_enabled: false
  42. matrix_mxisd_dns_overwrite_homeserver_client_name: "{{ matrix_server_fqn_matrix }}"
  43. matrix_mxisd_dns_overwrite_homeserver_client_value: "http://matrix-synapse:8008"
  44. # Override the default email templates
  45. # To use this, fill in the template variables with the full desired template as a multi-line YAML variable
  46. #
  47. # More info:
  48. # https://github.com/kamax-matrix/mxisd/blob/master/docs/threepids/notification/template-generator.md
  49. # https://github.com/kamax-matrix/mxisd/tree/master/src/main/resources/threepids/email
  50. matrix_mxisd_threepid_medium_email_custom_templates_enabled: false
  51. matrix_mxisd_threepid_medium_email_custom_invite_template: ""
  52. matrix_mxisd_threepid_medium_email_custom_session_validation_template: ""
  53. matrix_mxisd_threepid_medium_email_custom_unbind_fraudulent_template: ""
  54. matrix_mxisd_threepid_medium_email_custom_matrixid_template: ""
  55. # Controls whether the self-check feature should validate SSL certificates.
  56. matrix_mxisd_self_check_validate_certificates: true
  57. # Default mxisd configuration template which covers the generic use case.
  58. # You can customize it by controlling the various variables inside it.
  59. #
  60. # For a more advanced customization, you can extend the default (see `matrix_mxisd_configuration_extension_yaml`)
  61. # or completely replace this variable with your own template.
  62. matrix_mxisd_configuration_yaml: |
  63. #jinja2: lstrip_blocks: True
  64. matrix:
  65. domain: {{ matrix_domain }}
  66. server:
  67. name: {{ matrix_server_fqn_matrix }}
  68. key:
  69. path: /var/mxisd/sign.key
  70. storage:
  71. provider:
  72. sqlite:
  73. database: /var/mxisd/mxisd.db
  74. {% if matrix_mxisd_dns_overwrite_enabled %}
  75. dns:
  76. overwrite:
  77. homeserver:
  78. client:
  79. - name: {{ matrix_mxisd_dns_overwrite_homeserver_client_name }}
  80. value: {{ matrix_mxisd_dns_overwrite_homeserver_client_value }}
  81. {% endif %}
  82. {% if matrix_mxisd_matrixorg_forwarding_enabled %}
  83. forward:
  84. servers: ['matrix-org']
  85. {% endif %}
  86. threepid:
  87. medium:
  88. email:
  89. identity:
  90. from: {{ matrix_mxisd_threepid_medium_email_identity_from }}
  91. connectors:
  92. smtp:
  93. host: {{ matrix_mxisd_threepid_medium_email_connectors_smtp_host }}
  94. port: {{ matrix_mxisd_threepid_medium_email_connectors_smtp_port }}
  95. tls: {{ matrix_mxisd_threepid_medium_email_connectors_smtp_tls }}
  96. login: {{ matrix_mxisd_threepid_medium_email_connectors_smtp_login }}
  97. password: {{ matrix_mxisd_threepid_medium_email_connectors_smtp_password }}
  98. {% if matrix_mxisd_threepid_medium_email_custom_templates_enabled %}
  99. generators:
  100. template:
  101. {% if matrix_mxisd_threepid_medium_email_custom_invite_template %}
  102. invite: '/var/mxisd/invite-template.eml'
  103. {% endif %}
  104. {% if matrix_mxisd_threepid_medium_email_custom_session_validation_template or matrix_mxisd_threepid_medium_email_custom_unbind_fraudulent_template %}
  105. session:
  106. {% if matrix_mxisd_threepid_medium_email_custom_session_validation_template %}
  107. validation: '/var/mxisd/validate-template.eml'
  108. {% endif %}
  109. {% if matrix_mxisd_threepid_medium_email_custom_unbind_fraudulent_template %}
  110. unbind:
  111. frandulent: '/var/mxisd/unbind-fraudulent.eml'
  112. {% endif %}
  113. {% endif %}
  114. {% if matrix_mxisd_threepid_medium_email_custom_matrixid_template %}
  115. generic:
  116. matrixId: '/var/mxisd/mxid-template.eml'
  117. {% endif %}
  118. {% endif %}
  119. synapseSql:
  120. enabled: {{ matrix_mxisd_synapsesql_enabled }}
  121. type: {{ matrix_mxisd_synapsesql_type }}
  122. connection: {{ matrix_mxisd_synapsesql_connection }}
  123. matrix_mxisd_configuration_extension_yaml: |
  124. # Your custom YAML configuration for mxisd goes here.
  125. # This configuration extends the default starting configuration (`matrix_mxisd_configuration_yaml`).
  126. #
  127. # You can override individual variables from the default configuration, or introduce new ones.
  128. #
  129. # If you need something more special, you can take full control by
  130. # completely redefining `matrix_mxisd_configuration_yaml`.
  131. #
  132. # Example configuration extension follows:
  133. #
  134. # ldap:
  135. # enabled: true
  136. # connection:
  137. # host: ldapHostnameOrIp
  138. # tls: false
  139. # port: 389
  140. # baseDNs: ['OU=Users,DC=example,DC=org']
  141. # bindDn: CN=My Mxisd User,OU=Users,DC=example,DC=org
  142. # bindPassword: TheUserPassword
  143. matrix_mxisd_configuration_extension: "{{ matrix_mxisd_configuration_extension_yaml|from_yaml if matrix_mxisd_configuration_extension_yaml|from_yaml is mapping else {} }}"
  144. # Holds the final mxisd configuration (a combination of the default and its extension).
  145. # You most likely don't need to touch this variable. Instead, see `matrix_mxisd_configuration_yaml`.
  146. matrix_mxisd_configuration: "{{ matrix_mxisd_configuration_yaml|from_yaml|combine(matrix_mxisd_configuration_extension, recursive=True) }}"