Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

176 lines
7.6 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. # Controls mxisd logging verbosity for troubleshooting.
  58. #
  59. # According to: https://github.com/kamax-matrix/mxisd/blob/master/docs/troubleshooting.md#increase-verbosity
  60. matrix_mxisd_verbose_logging: false
  61. # Default mxisd configuration template which covers the generic use case.
  62. # You can customize it by controlling the various variables inside it.
  63. #
  64. # For a more advanced customization, you can extend the default (see `matrix_mxisd_configuration_extension_yaml`)
  65. # or completely replace this variable with your own template.
  66. matrix_mxisd_configuration_yaml: |
  67. #jinja2: lstrip_blocks: True
  68. matrix:
  69. domain: {{ matrix_domain }}
  70. server:
  71. name: {{ matrix_server_fqn_matrix }}
  72. key:
  73. path: /var/mxisd/sign.key
  74. storage:
  75. provider:
  76. sqlite:
  77. database: /var/mxisd/mxisd.db
  78. {% if matrix_mxisd_dns_overwrite_enabled %}
  79. dns:
  80. overwrite:
  81. homeserver:
  82. client:
  83. - name: {{ matrix_mxisd_dns_overwrite_homeserver_client_name }}
  84. value: {{ matrix_mxisd_dns_overwrite_homeserver_client_value }}
  85. {% endif %}
  86. {% if matrix_mxisd_matrixorg_forwarding_enabled %}
  87. forward:
  88. servers: ['matrix-org']
  89. {% endif %}
  90. threepid:
  91. medium:
  92. email:
  93. identity:
  94. from: {{ matrix_mxisd_threepid_medium_email_identity_from }}
  95. connectors:
  96. smtp:
  97. host: {{ matrix_mxisd_threepid_medium_email_connectors_smtp_host }}
  98. port: {{ matrix_mxisd_threepid_medium_email_connectors_smtp_port }}
  99. tls: {{ matrix_mxisd_threepid_medium_email_connectors_smtp_tls }}
  100. login: {{ matrix_mxisd_threepid_medium_email_connectors_smtp_login }}
  101. password: {{ matrix_mxisd_threepid_medium_email_connectors_smtp_password }}
  102. {% if matrix_mxisd_threepid_medium_email_custom_templates_enabled %}
  103. generators:
  104. template:
  105. {% if matrix_mxisd_threepid_medium_email_custom_invite_template %}
  106. invite: '/var/mxisd/invite-template.eml'
  107. {% endif %}
  108. {% if matrix_mxisd_threepid_medium_email_custom_session_validation_template or matrix_mxisd_threepid_medium_email_custom_unbind_fraudulent_template %}
  109. session:
  110. {% if matrix_mxisd_threepid_medium_email_custom_session_validation_template %}
  111. validation: '/var/mxisd/validate-template.eml'
  112. {% endif %}
  113. {% if matrix_mxisd_threepid_medium_email_custom_unbind_fraudulent_template %}
  114. unbind:
  115. frandulent: '/var/mxisd/unbind-fraudulent.eml'
  116. {% endif %}
  117. {% endif %}
  118. {% if matrix_mxisd_threepid_medium_email_custom_matrixid_template %}
  119. generic:
  120. matrixId: '/var/mxisd/mxid-template.eml'
  121. {% endif %}
  122. {% endif %}
  123. synapseSql:
  124. enabled: {{ matrix_mxisd_synapsesql_enabled }}
  125. type: {{ matrix_mxisd_synapsesql_type }}
  126. connection: {{ matrix_mxisd_synapsesql_connection }}
  127. matrix_mxisd_configuration_extension_yaml: |
  128. # Your custom YAML configuration for mxisd goes here.
  129. # This configuration extends the default starting configuration (`matrix_mxisd_configuration_yaml`).
  130. #
  131. # You can override individual variables from the default configuration, or introduce new ones.
  132. #
  133. # If you need something more special, you can take full control by
  134. # completely redefining `matrix_mxisd_configuration_yaml`.
  135. #
  136. # Example configuration extension follows:
  137. #
  138. # ldap:
  139. # enabled: true
  140. # connection:
  141. # host: ldapHostnameOrIp
  142. # tls: false
  143. # port: 389
  144. # baseDNs: ['OU=Users,DC=example,DC=org']
  145. # bindDn: CN=My Mxisd User,OU=Users,DC=example,DC=org
  146. # bindPassword: TheUserPassword
  147. matrix_mxisd_configuration_extension: "{{ matrix_mxisd_configuration_extension_yaml|from_yaml if matrix_mxisd_configuration_extension_yaml|from_yaml is mapping else {} }}"
  148. # Holds the final mxisd configuration (a combination of the default and its extension).
  149. # You most likely don't need to touch this variable. Instead, see `matrix_mxisd_configuration_yaml`.
  150. matrix_mxisd_configuration: "{{ matrix_mxisd_configuration_yaml|from_yaml|combine(matrix_mxisd_configuration_extension, recursive=True) }}"