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.
 
 

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