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.

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