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.5 KiB

  1. # ma1sd is a Federated Matrix Identity Server
  2. # See: https://github.com/ma1uta/ma1sd
  3. matrix_ma1sd_enabled: true
  4. matrix_ma1sd_docker_image: "ma1uta/ma1sd:1.4.6"
  5. matrix_ma1sd_docker_image_force_pull: "{{ matrix_ma1sd_docker_image.endswith(':latest') }}"
  6. matrix_ma1sd_base_path: "{{ matrix_base_data_path }}/ma1sd"
  7. matrix_ma1sd_config_path: "{{ matrix_ma1sd_base_path }}/config"
  8. matrix_ma1sd_data_path: "{{ matrix_ma1sd_base_path }}/data"
  9. # Controls whether the matrix-ma1sd 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_ma1sd_container_http_host_bind_port: ''
  13. # A list of extra arguments to pass to the container
  14. matrix_ma1sd_container_extra_arguments: []
  15. # List of systemd services that matrix-ma1sd.service depends on
  16. matrix_ma1sd_systemd_required_services_list: ['docker.service']
  17. # List of systemd services that matrix-ma1sd.service wants
  18. matrix_ma1sd_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/ma1uta/ma1sd/blob/master/docs/features/identity.md#lookups
  24. matrix_ma1sd_matrixorg_forwarding_enabled: false
  25. # ma1sd has serveral supported identity stores.
  26. # One of them is storing identities directly in Synapse's database.
  27. # Learn more here: https://github.com/ma1uta/ma1sd/blob/master/docs/stores/synapse.md
  28. matrix_ma1sd_synapsesql_enabled: false
  29. matrix_ma1sd_synapsesql_type: ""
  30. matrix_ma1sd_synapsesql_connection: ""
  31. # Setting up email-sending settings is required for using ma1sd.
  32. matrix_ma1sd_threepid_medium_email_identity_from: "matrix@{{ matrix_domain }}"
  33. matrix_ma1sd_threepid_medium_email_connectors_smtp_host: ""
  34. matrix_ma1sd_threepid_medium_email_connectors_smtp_port: 587
  35. matrix_ma1sd_threepid_medium_email_connectors_smtp_tls: 1
  36. matrix_ma1sd_threepid_medium_email_connectors_smtp_login: ""
  37. matrix_ma1sd_threepid_medium_email_connectors_smtp_password: ""
  38. # DNS overwrites are useful for telling ma1sd how it can reach the homeserver directly.
  39. # Useful when reverse-proxying certain URLs (e.g. `/_matrix/client/r0/user_directory/search`) to ma1sd,
  40. # so that ma1sd can rewrite the original URL to one that would reach the homeserver.
  41. matrix_ma1sd_dns_overwrite_enabled: false
  42. matrix_ma1sd_dns_overwrite_homeserver_client_name: "{{ matrix_server_fqn_matrix }}"
  43. matrix_ma1sd_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/ma1uta/ma1sd/blob/master/docs/threepids/notification/template-generator.md
  49. # https://github.com/ma1uta/ma1sd/tree/master/src/main/resources/threepids/email
  50. matrix_ma1sd_threepid_medium_email_custom_templates_enabled: false
  51. matrix_ma1sd_threepid_medium_email_custom_invite_template: ""
  52. matrix_ma1sd_threepid_medium_email_custom_session_validation_template: ""
  53. matrix_ma1sd_threepid_medium_email_custom_unbind_fraudulent_template: ""
  54. matrix_ma1sd_threepid_medium_email_custom_matrixid_template: ""
  55. # Controls whether the self-check feature should validate SSL certificates.
  56. matrix_ma1sd_self_check_validate_certificates: true
  57. # Controls ma1sd logging verbosity for troubleshooting.
  58. #
  59. # According to: https://github.com/ma1uta/ma1sd/blob/master/docs/troubleshooting.md#increase-verbosity
  60. matrix_ma1sd_verbose_logging: false
  61. # Default ma1sd 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_ma1sd_configuration_extension_yaml`)
  65. # or completely replace this variable with your own template.
  66. matrix_ma1sd_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/ma1sd/sign.key
  74. storage:
  75. provider:
  76. sqlite:
  77. database: /var/ma1sd/ma1sd.db
  78. {% if matrix_ma1sd_dns_overwrite_enabled %}
  79. dns:
  80. overwrite:
  81. homeserver:
  82. client:
  83. - name: {{ matrix_ma1sd_dns_overwrite_homeserver_client_name }}
  84. value: {{ matrix_ma1sd_dns_overwrite_homeserver_client_value }}
  85. {% endif %}
  86. {% if matrix_ma1sd_matrixorg_forwarding_enabled %}
  87. forward:
  88. servers: ['matrix-org']
  89. {% endif %}
  90. threepid:
  91. medium:
  92. email:
  93. identity:
  94. from: {{ matrix_ma1sd_threepid_medium_email_identity_from }}
  95. connectors:
  96. smtp:
  97. host: {{ matrix_ma1sd_threepid_medium_email_connectors_smtp_host }}
  98. port: {{ matrix_ma1sd_threepid_medium_email_connectors_smtp_port }}
  99. tls: {{ matrix_ma1sd_threepid_medium_email_connectors_smtp_tls }}
  100. login: {{ matrix_ma1sd_threepid_medium_email_connectors_smtp_login }}
  101. password: {{ matrix_ma1sd_threepid_medium_email_connectors_smtp_password }}
  102. {% if matrix_ma1sd_threepid_medium_email_custom_templates_enabled %}
  103. generators:
  104. template:
  105. {% if matrix_ma1sd_threepid_medium_email_custom_invite_template %}
  106. invite: '/var/ma1sd/invite-template.eml'
  107. {% endif %}
  108. {% if matrix_ma1sd_threepid_medium_email_custom_session_validation_template or matrix_ma1sd_threepid_medium_email_custom_unbind_fraudulent_template %}
  109. session:
  110. {% if matrix_ma1sd_threepid_medium_email_custom_session_validation_template %}
  111. validation: '/var/ma1sd/validate-template.eml'
  112. {% endif %}
  113. {% if matrix_ma1sd_threepid_medium_email_custom_unbind_fraudulent_template %}
  114. unbind:
  115. frandulent: '/var/ma1sd/unbind-fraudulent.eml'
  116. {% endif %}
  117. {% endif %}
  118. {% if matrix_ma1sd_threepid_medium_email_custom_matrixid_template %}
  119. generic:
  120. matrixId: '/var/ma1sd/mxid-template.eml'
  121. {% endif %}
  122. {% endif %}
  123. synapseSql:
  124. enabled: {{ matrix_ma1sd_synapsesql_enabled }}
  125. type: {{ matrix_ma1sd_synapsesql_type }}
  126. connection: {{ matrix_ma1sd_synapsesql_connection }}
  127. matrix_ma1sd_configuration_extension_yaml: |
  128. # Your custom YAML configuration for ma1sd goes here.
  129. # This configuration extends the default starting configuration (`matrix_ma1sd_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_ma1sd_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 Ma1sd User,OU=Users,DC=example,DC=org
  146. # bindPassword: TheUserPassword
  147. matrix_ma1sd_configuration_extension: "{{ matrix_ma1sd_configuration_extension_yaml|from_yaml if matrix_ma1sd_configuration_extension_yaml|from_yaml is mapping else {} }}"
  148. # Holds the final ma1sd configuration (a combination of the default and its extension).
  149. # You most likely don't need to touch this variable. Instead, see `matrix_ma1sd_configuration_yaml`.
  150. matrix_ma1sd_configuration: "{{ matrix_ma1sd_configuration_yaml|from_yaml|combine(matrix_ma1sd_configuration_extension, recursive=True) }}"