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.
 
 

155 rivejä
6.7 KiB

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