Matrix Docker Ansible eploy
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 

161 rader
6.9 KiB

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