Matrix Docker Ansible eploy
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

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