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.
 
 

101 lines
4.5 KiB

  1. # By default, this playbook installs the mxisd identity server on the same domain as Synapse (`hostname_matrix`).
  2. # If you wish to use the public identity servers (matrix.org, vector.im, riot.im) instead of your own,
  3. # you may wish to disable this.
  4. matrix_mxisd_enabled: true
  5. matrix_mxisd_docker_image: "kamax/mxisd:1.2.2"
  6. matrix_mxisd_base_path: "{{ matrix_base_data_path }}/mxisd"
  7. matrix_mxisd_config_path: "{{ matrix_mxisd_base_path }}/config"
  8. matrix_mxisd_data_path: "{{ matrix_mxisd_base_path }}/data"
  9. # Controls whether the mxisd web server's port is exposed outside of the container.
  10. # Normally, matrix-nginx-proxy is enabled and nginx can reach mxisd over the container network.
  11. # If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
  12. # mxisd's web-server port to the local host (`127.0.0.1:8090`).
  13. matrix_mxisd_container_expose_port: "{{ not matrix_nginx_proxy_enabled }}"
  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 (which we enable by default) 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. #
  24. # If you need to disable this in favor of some other store, you can toggle it to disabled here
  25. # and add your own mxisd configuration for the other store in `matrix_mxisd_configuration_extension_yaml`.
  26. matrix_mxisd_synapsesql_enabled: true
  27. matrix_mxisd_synapsesql_type: postgresql
  28. matrix_mxisd_synapsesql_connection: //{{ matrix_postgres_connection_hostname }}/{{ matrix_postgres_db_name }}?user={{ matrix_postgres_connection_username }}&password={{ matrix_postgres_connection_password }}
  29. # Default mxisd configuration template which covers the generic use case.
  30. # You can customize it by controlling the various variables inside it.
  31. #
  32. # For a more advanced customization, you can extend the default (see `matrix_mxisd_configuration_extension_yaml`)
  33. # or completely replace this variable with your own template.
  34. matrix_mxisd_configuration_yaml: |
  35. matrix:
  36. domain: {{ hostname_identity }}
  37. server:
  38. name: {{ hostname_matrix }}
  39. key:
  40. path: /var/mxisd/sign.key
  41. storage:
  42. provider:
  43. sqlite:
  44. database: /var/mxisd/mxisd.db
  45. {% if matrix_mxisd_matrixorg_forwarding_enabled %}
  46. forward:
  47. servers: ['matrix-org']
  48. {% endif %}
  49. threepid:
  50. medium:
  51. email:
  52. identity:
  53. from: {{ matrix_mailer_sender_address }}
  54. connectors:
  55. smtp:
  56. host: matrix-mailer
  57. port: 587
  58. tls: 0
  59. synapseSql:
  60. enabled: {{ matrix_mxisd_synapsesql_enabled }}
  61. type: {{ matrix_mxisd_synapsesql_type }}
  62. connection: {{ matrix_mxisd_synapsesql_connection }}
  63. matrix_mxisd_configuration_extension_yaml: |
  64. # Your custom YAML configuration for mxisd goes here.
  65. # This configuration extends the default starting configuration (`matrix_mxisd_configuration_yaml`).
  66. #
  67. # You can override individual variables from the default configuration, or introduce new ones.
  68. #
  69. # If you need something more special, you can take full control by
  70. # completely redefining `matrix_mxisd_configuration_yaml`.
  71. #
  72. # Example configuration extension follows:
  73. #
  74. # ldap:
  75. # enabled: true
  76. # connection:
  77. # host: ldapHostnameOrIp
  78. # tls: false
  79. # port: 389
  80. # baseDns: ['OU=Users,DC=example,DC=org']
  81. # bindDn: CN=My Mxisd User,OU=Users,DC=example,DC=org
  82. # bindPassword: TheUserPassword
  83. # Doing `|from_yaml` when the extension contains nothing yields an empty string ("").
  84. # We need to ensure it's a dictionary or `|combine` (when building `matrix_mxisd_configuration`) will fail later.
  85. matrix_mxisd_configuration_extension: "{{ matrix_mxisd_configuration_extension_yaml|from_yaml if matrix_mxisd_configuration_extension_yaml|from_yaml else {} }}"
  86. # Holds the final mxisd configuration (a combination of the default and its extension).
  87. # You most likely don't need to touch this variable. Instead, see `matrix_mxisd_configuration_yaml`.
  88. matrix_mxisd_configuration: "{{ matrix_mxisd_configuration_yaml|from_yaml|combine(matrix_mxisd_configuration_extension, recursive=True) }}"