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.
 
 

146 linhas
6.8 KiB

  1. # ma1sd is a Federated Matrix Identity Server
  2. # See: https://github.com/ma1uta/ma1sd
  3. matrix_ma1sd_enabled: true
  4. matrix_ma1sd_container_image_self_build: false
  5. matrix_ma1sd_container_image_self_build_repo: "https://github.com/ma1uta/ma1sd.git"
  6. matrix_ma1sd_architecture: "amd64"
  7. matrix_ma1sd_docker_image: "{{ matrix_ma1sd_docker_image_name_prefix }}ma1uta/ma1sd:2.4.0-{{ matrix_ma1sd_architecture }}"
  8. matrix_ma1sd_docker_image_name_prefix: "{{ 'localhost/' if matrix_ma1sd_container_image_self_build else 'docker.io/' }}"
  9. matrix_ma1sd_docker_image_force_pull: "{{ matrix_ma1sd_docker_image.endswith(':latest') }}"
  10. matrix_ma1sd_base_path: "{{ matrix_base_data_path }}/ma1sd"
  11. # We need the docker src directory to be named ma1sd. See: https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/588
  12. matrix_ma1sd_docker_src_files_path: "{{ matrix_ma1sd_base_path }}/docker-src/ma1sd"
  13. matrix_ma1sd_config_path: "{{ matrix_ma1sd_base_path }}/config"
  14. matrix_ma1sd_data_path: "{{ matrix_ma1sd_base_path }}/data"
  15. # Controls whether the matrix-ma1sd container exposes its HTTP port (tcp/8090 in the container).
  16. #
  17. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8090"), or empty string to not expose.
  18. matrix_ma1sd_container_http_host_bind_port: ''
  19. # A list of extra arguments to pass to the container
  20. matrix_ma1sd_container_extra_arguments: []
  21. # List of systemd services that matrix-ma1sd.service depends on
  22. matrix_ma1sd_systemd_required_services_list: ['docker.service']
  23. # List of systemd services that matrix-ma1sd.service wants
  24. matrix_ma1sd_systemd_wanted_services_list: []
  25. # Your identity server is private by default.
  26. # To ensure maximum discovery, you can make your identity server
  27. # also forward lookups to the central matrix.org Identity server
  28. # (at the cost of potentially leaking all your contacts information).
  29. # Enabling this is discouraged. Learn more here: https://github.com/ma1uta/ma1sd/blob/master/docs/features/identity.md#lookups
  30. matrix_ma1sd_matrixorg_forwarding_enabled: false
  31. # Database-related configuration fields.
  32. #
  33. # To use SQLite, stick to these defaults.
  34. #
  35. # To use Postgres:
  36. # - change the engine (`matrix_ma1sd_database_engine: 'postgres'`)
  37. # - adjust your database credentials via the `matrix_ma1sd_postgres_*` variables
  38. matrix_ma1sd_database_engine: 'sqlite'
  39. matrix_ma1sd_sqlite_database_path_local: "{{ matrix_ma1sd_data_path }}/ma1sd.db"
  40. matrix_ma1sd_sqlite_database_path_in_container: "/var/ma1sd/ma1sd.db"
  41. matrix_ma1sd_database_username: 'matrix_ma1sd'
  42. matrix_ma1sd_database_password: 'some-password'
  43. matrix_ma1sd_database_hostname: 'matrix-postgres'
  44. matrix_ma1sd_database_port: 5432
  45. matrix_ma1sd_database_name: 'matrix_ma1sd'
  46. matrix_ma1sd_database_connection_string: 'postgresql://{{ matrix_ma1sd_database_username }}:{{ matrix_ma1sd_database_password }}@{{ matrix_ma1sd_database_hostname }}:{{ matrix_ma1sd_database_port }}/{{ matrix_ma1sd_database_name }}'
  47. # ma1sd has serveral supported identity stores.
  48. # One of them is storing identities directly in Synapse's database.
  49. # Learn more here: https://github.com/ma1uta/ma1sd/blob/master/docs/stores/synapse.md
  50. matrix_ma1sd_synapsesql_enabled: false
  51. matrix_ma1sd_synapsesql_type: ""
  52. matrix_ma1sd_synapsesql_connection: ""
  53. # Setting up email-sending settings is required for using ma1sd.
  54. matrix_ma1sd_threepid_medium_email_identity_from: "matrix@{{ matrix_domain }}"
  55. matrix_ma1sd_threepid_medium_email_connectors_smtp_host: ""
  56. matrix_ma1sd_threepid_medium_email_connectors_smtp_port: 587
  57. matrix_ma1sd_threepid_medium_email_connectors_smtp_tls: 1
  58. matrix_ma1sd_threepid_medium_email_connectors_smtp_login: ""
  59. matrix_ma1sd_threepid_medium_email_connectors_smtp_password: ""
  60. # DNS overwrites are useful for telling ma1sd how it can reach the homeserver directly.
  61. # Useful when reverse-proxying certain URLs (e.g. `/_matrix/client/r0/user_directory/search`) to ma1sd,
  62. # so that ma1sd can rewrite the original URL to one that would reach the homeserver.
  63. matrix_ma1sd_dns_overwrite_enabled: false
  64. matrix_ma1sd_dns_overwrite_homeserver_client_name: "{{ matrix_server_fqn_matrix }}"
  65. matrix_ma1sd_dns_overwrite_homeserver_client_value: "http://matrix-synapse:8008"
  66. # Override the default email templates
  67. # To use this, fill in the template variables with the full desired template as a multi-line YAML variable
  68. #
  69. # More info:
  70. # https://github.com/ma1uta/ma1sd/blob/master/docs/threepids/notification/template-generator.md
  71. # https://github.com/ma1uta/ma1sd/tree/master/src/main/resources/threepids/email
  72. matrix_ma1sd_threepid_medium_email_custom_templates_enabled: false
  73. matrix_ma1sd_threepid_medium_email_custom_invite_template: ""
  74. matrix_ma1sd_threepid_medium_email_custom_session_validation_template: ""
  75. matrix_ma1sd_threepid_medium_email_custom_unbind_fraudulent_template: ""
  76. matrix_ma1sd_threepid_medium_email_custom_matrixid_template: ""
  77. # Controls whether the self-check feature should validate SSL certificates.
  78. matrix_ma1sd_self_check_validate_certificates: true
  79. # Controls ma1sd logging verbosity for troubleshooting.
  80. #
  81. # According to: https://github.com/ma1uta/ma1sd/blob/master/docs/troubleshooting.md#increase-verbosity
  82. matrix_ma1sd_verbose_logging: false
  83. # Setting up support for API prefixes
  84. matrix_ma1sd_v1_enabled: true
  85. matrix_ma1sd_v2_enabled: true
  86. # Fix for missing 3PIDS bug
  87. matrix_ma1sd_hashing_enabled: true
  88. # Default ma1sd configuration template which covers the generic use case.
  89. # You can customize it by controlling the various variables inside it.
  90. #
  91. # For a more advanced customization, you can extend the default (see `matrix_ma1sd_configuration_extension_yaml`)
  92. # or completely replace this variable with your own template.
  93. matrix_ma1sd_configuration_yaml: "{{ lookup('template', 'templates/ma1sd.yaml.j2') }}"
  94. matrix_ma1sd_configuration_extension_yaml: |
  95. # Your custom YAML configuration for ma1sd goes here.
  96. # This configuration extends the default starting configuration (`matrix_ma1sd_configuration_yaml`).
  97. #
  98. # You can override individual variables from the default configuration, or introduce new ones.
  99. #
  100. # If you need something more special, you can take full control by
  101. # completely redefining `matrix_ma1sd_configuration_yaml`.
  102. #
  103. # Example configuration extension follows:
  104. #
  105. # ldap:
  106. # enabled: true
  107. # connection:
  108. # host: ldapHostnameOrIp
  109. # tls: false
  110. # port: 389
  111. # baseDNs: ['OU=Users,DC=example,DC=org']
  112. # bindDn: CN=My Ma1sd User,OU=Users,DC=example,DC=org
  113. # bindPassword: TheUserPassword
  114. matrix_ma1sd_configuration_extension: "{{ matrix_ma1sd_configuration_extension_yaml|from_yaml if matrix_ma1sd_configuration_extension_yaml|from_yaml is mapping else {} }}"
  115. # Holds the final ma1sd configuration (a combination of the default and its extension).
  116. # You most likely don't need to touch this variable. Instead, see `matrix_ma1sd_configuration_yaml`.
  117. matrix_ma1sd_configuration: "{{ matrix_ma1sd_configuration_yaml|from_yaml|combine(matrix_ma1sd_configuration_extension, recursive=True) }}"