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.
 
 

122 lines
4.9 KiB

  1. matrix_mxisd_enabled: true
  2. matrix_mxisd_docker_image: "kamax/mxisd:1.2.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. # 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@{{ hostname_identity }}"
  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: "{{ hostname_matrix }}"
  36. matrix_mxisd_dns_overwrite_homeserver_client_value: "http://matrix-synapse:8008"
  37. # Default mxisd configuration template which covers the generic use case.
  38. # You can customize it by controlling the various variables inside it.
  39. #
  40. # For a more advanced customization, you can extend the default (see `matrix_mxisd_configuration_extension_yaml`)
  41. # or completely replace this variable with your own template.
  42. matrix_mxisd_configuration_yaml: |
  43. matrix:
  44. domain: {{ hostname_identity }}
  45. server:
  46. name: {{ hostname_matrix }}
  47. key:
  48. path: /var/mxisd/sign.key
  49. storage:
  50. provider:
  51. sqlite:
  52. database: /var/mxisd/mxisd.db
  53. {% if matrix_mxisd_dns_overwrite_enabled %}
  54. dns:
  55. overwrite:
  56. homeserver:
  57. client:
  58. - name: {{ matrix_mxisd_dns_overwrite_homeserver_client_name }}
  59. value: {{ matrix_mxisd_dns_overwrite_homeserver_client_value }}
  60. {% endif %}
  61. {% if matrix_mxisd_matrixorg_forwarding_enabled %}
  62. forward:
  63. servers: ['matrix-org']
  64. {% endif %}
  65. threepid:
  66. medium:
  67. email:
  68. identity:
  69. from: {{ matrix_mxisd_threepid_medium_email_identity_from }}
  70. connectors:
  71. smtp:
  72. host: {{ matrix_mxisd_threepid_medium_email_connectors_smtp_host }}
  73. port: {{ matrix_mxisd_threepid_medium_email_connectors_smtp_port }}
  74. tls: {{ matrix_mxisd_threepid_medium_email_connectors_smtp_tls }}
  75. login: {{ matrix_mxisd_threepid_medium_email_connectors_smtp_login }}
  76. password: {{ matrix_mxisd_threepid_medium_email_connectors_smtp_password }}
  77. synapseSql:
  78. enabled: {{ matrix_mxisd_synapsesql_enabled }}
  79. type: {{ matrix_mxisd_synapsesql_type }}
  80. connection: {{ matrix_mxisd_synapsesql_connection }}
  81. matrix_mxisd_configuration_extension_yaml: |
  82. # Your custom YAML configuration for mxisd goes here.
  83. # This configuration extends the default starting configuration (`matrix_mxisd_configuration_yaml`).
  84. #
  85. # You can override individual variables from the default configuration, or introduce new ones.
  86. #
  87. # If you need something more special, you can take full control by
  88. # completely redefining `matrix_mxisd_configuration_yaml`.
  89. #
  90. # Example configuration extension follows:
  91. #
  92. # ldap:
  93. # enabled: true
  94. # connection:
  95. # host: ldapHostnameOrIp
  96. # tls: false
  97. # port: 389
  98. # baseDns: ['OU=Users,DC=example,DC=org']
  99. # bindDn: CN=My Mxisd User,OU=Users,DC=example,DC=org
  100. # bindPassword: TheUserPassword
  101. # Holds the final mxisd configuration (a combination of the default and its extension).
  102. # You most likely don't need to touch this variable. Instead, see `matrix_mxisd_configuration_yaml`.
  103. matrix_mxisd_configuration: "{{ matrix_mxisd_configuration_yaml|from_yaml|combine(matrix_mxisd_configuration_extension, recursive=True) }}"