Matrix Docker Ansible eploy
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

152 wiersze
9.3 KiB

  1. # SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. # Conduit is a simple, fast and reliable chat server powered by Matrix
  6. # Project source code URL: https://gitlab.com/famedly/conduit
  7. # See: https://conduit.rs
  8. matrix_conduit_enabled: true
  9. matrix_conduit_hostname: ''
  10. matrix_conduit_docker_image: "{{ matrix_conduit_docker_image_name_prefix }}matrixconduit/matrix-conduit:{{ matrix_conduit_docker_image_tag }}"
  11. matrix_conduit_docker_image_name_prefix: "docker.io/"
  12. # renovate: datasource=docker depName=matrixconduit/matrix-conduit
  13. matrix_conduit_docker_image_tag: "v0.9.0"
  14. matrix_conduit_docker_image_force_pull: "{{ matrix_conduit_docker_image.endswith(':latest') }}"
  15. matrix_conduit_base_path: "{{ matrix_base_data_path }}/conduit"
  16. matrix_conduit_config_path: "{{ matrix_conduit_base_path }}/config"
  17. matrix_conduit_data_path: "{{ matrix_conduit_base_path }}/data"
  18. matrix_conduit_port_number: 6167
  19. matrix_conduit_tmp_directory_size_mb: 500
  20. # List of systemd services that matrix-conduit.service depends on
  21. matrix_conduit_systemd_required_services_list: "{{ matrix_conduit_systemd_required_services_list_default + matrix_conduit_systemd_required_services_list_auto + matrix_conduit_systemd_required_services_list_custom }}"
  22. matrix_conduit_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  23. matrix_conduit_systemd_required_services_list_auto: []
  24. matrix_conduit_systemd_required_services_list_custom: []
  25. # List of systemd services that matrix-conduit.service wants
  26. matrix_conduit_systemd_wanted_services_list: []
  27. # Controls how long to sleep for after starting the matrix-synapse container.
  28. #
  29. # Delaying, so that the homeserver can manage to fully start and various services
  30. # that depend on it (`matrix_conduit_systemd_required_services_list` and `matrix_conduit_systemd_wanted_services_list`)
  31. # may only start after the homeserver is up and running.
  32. #
  33. # This can be set to 0 to remove the delay.
  34. matrix_conduit_systemd_service_post_start_delay_seconds: 3
  35. # The base container network. It will be auto-created by this role if it doesn't exist already.
  36. matrix_conduit_container_network: ""
  37. # A list of additional container networks that the container would be connected to.
  38. # The role does not create these networks, so make sure they already exist.
  39. # Use this to expose this container to another reverse proxy, which runs in a different container network.
  40. matrix_conduit_container_additional_networks: "{{ matrix_conduit_container_additional_networks_auto + matrix_conduit_container_additional_networks_custom }}"
  41. matrix_conduit_container_additional_networks_auto: []
  42. matrix_conduit_container_additional_networks_custom: []
  43. # matrix_conduit_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  44. # See `../templates/labels.j2` for details.
  45. #
  46. # To inject your own other container labels, see `matrix_conduit_container_labels_additional_labels`.
  47. matrix_conduit_container_labels_traefik_enabled: true
  48. matrix_conduit_container_labels_traefik_docker_network: "{{ matrix_conduit_container_network }}"
  49. matrix_conduit_container_labels_traefik_entrypoints: web-secure
  50. matrix_conduit_container_labels_traefik_tls_certResolver: default # noqa var-naming
  51. # Controls whether labels will be added for handling the root (/) path on a public Traefik entrypoint.
  52. matrix_conduit_container_labels_public_client_root_enabled: true
  53. matrix_conduit_container_labels_public_client_root_traefik_hostname: "{{ matrix_conduit_hostname }}"
  54. matrix_conduit_container_labels_public_client_root_traefik_rule: "Host(`{{ matrix_conduit_container_labels_public_client_root_traefik_hostname }}`) && Path(`/`)"
  55. matrix_conduit_container_labels_public_client_root_traefik_priority: 0
  56. matrix_conduit_container_labels_public_client_root_traefik_entrypoints: "{{ matrix_conduit_container_labels_traefik_entrypoints }}"
  57. matrix_conduit_container_labels_public_client_root_traefik_tls: "{{ matrix_conduit_container_labels_public_client_root_traefik_entrypoints != 'web' }}"
  58. matrix_conduit_container_labels_public_client_root_traefik_tls_certResolver: "{{ matrix_conduit_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  59. matrix_conduit_container_labels_public_client_root_redirection_enabled: false
  60. matrix_conduit_container_labels_public_client_root_redirection_url: ""
  61. # Controls whether labels will be added that expose the Client-Server API on a public Traefik entrypoint.
  62. matrix_conduit_container_labels_public_client_api_enabled: true
  63. matrix_conduit_container_labels_public_client_api_traefik_hostname: "{{ matrix_conduit_hostname }}"
  64. matrix_conduit_container_labels_public_client_api_traefik_path_prefix: /_matrix
  65. matrix_conduit_container_labels_public_client_api_traefik_rule: "Host(`{{ matrix_conduit_container_labels_public_client_api_traefik_hostname }}`) && PathPrefix(`{{ matrix_conduit_container_labels_public_client_api_traefik_path_prefix }}`)"
  66. matrix_conduit_container_labels_public_client_api_traefik_priority: 0
  67. matrix_conduit_container_labels_public_client_api_traefik_entrypoints: "{{ matrix_conduit_container_labels_traefik_entrypoints }}"
  68. matrix_conduit_container_labels_public_client_api_traefik_tls: "{{ matrix_conduit_container_labels_public_client_api_traefik_entrypoints != 'web' }}"
  69. matrix_conduit_container_labels_public_client_api_traefik_tls_certResolver: "{{ matrix_conduit_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  70. # Controls whether labels will be added that expose the Client-Server API on the internal Traefik entrypoint.
  71. # This is similar to `matrix_conduit_container_labels_public_client_api_enabled`, but the entrypoint and intent is different.
  72. matrix_conduit_container_labels_internal_client_api_enabled: false
  73. matrix_conduit_container_labels_internal_client_api_traefik_path_prefix: "{{ matrix_conduit_container_labels_public_client_api_traefik_path_prefix }}"
  74. matrix_conduit_container_labels_internal_client_api_traefik_rule: "PathPrefix(`{{ matrix_conduit_container_labels_internal_client_api_traefik_path_prefix }}`)"
  75. matrix_conduit_container_labels_internal_client_api_traefik_priority: "{{ matrix_conduit_container_labels_public_client_api_traefik_priority }}"
  76. matrix_conduit_container_labels_internal_client_api_traefik_entrypoints: ""
  77. # Controls whether labels will be added that expose the Server-Server API (Federation API) on a public Traefik entrypoint.
  78. matrix_conduit_container_labels_public_federation_api_enabled: "{{ matrix_conduit_allow_federation }}"
  79. matrix_conduit_container_labels_public_federation_api_traefik_hostname: "{{ matrix_conduit_hostname }}"
  80. matrix_conduit_container_labels_public_federation_api_traefik_path_prefix: /_matrix
  81. matrix_conduit_container_labels_public_federation_api_traefik_rule: "Host(`{{ matrix_conduit_container_labels_public_federation_api_traefik_hostname }}`) && PathPrefix(`{{ matrix_conduit_container_labels_public_federation_api_traefik_path_prefix }}`)"
  82. matrix_conduit_container_labels_public_federation_api_traefik_priority: 0
  83. matrix_conduit_container_labels_public_federation_api_traefik_entrypoints: ''
  84. # TLS is force-enabled here, because the spec (https://spec.matrix.org/v1.9/server-server-api/#tls) says that the federation API must use HTTPS.
  85. matrix_conduit_container_labels_public_federation_api_traefik_tls: true
  86. matrix_conduit_container_labels_public_federation_api_traefik_tls_certResolver: "{{ matrix_conduit_container_labels_traefik_tls_certResolver }}" # noqa var-naming
  87. # matrix_conduit_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  88. # See `../templates/labels.j2` for details.
  89. #
  90. # Example:
  91. # matrix_conduit_container_labels_additional_labels: |
  92. # my.label=1
  93. # another.label="here"
  94. matrix_conduit_container_labels_additional_labels: ''
  95. # Extra arguments for the Docker container
  96. matrix_conduit_container_extra_arguments: []
  97. # Specifies which template files to use when configuring Conduit.
  98. # If you'd like to have your own different configuration, feel free to copy and paste
  99. # the original files into your inventory (e.g. in `inventory/host_vars/matrix.example.com/`)
  100. # and then change the specific host's `vars.yaml` file like this:
  101. # matrix_conduit_template_conduit_config: "{{ playbook_dir }}/inventory/host_vars/matrix.example.com/conduit.toml.j2"
  102. matrix_conduit_template_conduit_config: "{{ role_path }}/templates/conduit.toml.j2"
  103. # Max size for uploads, in bytes
  104. matrix_conduit_max_request_size: 20_000_000
  105. # Maximum number of open files for Conduit's embedded RocksDB database
  106. # See https://github.com/facebook/rocksdb/wiki/RocksDB-Tuning-Guide#tuning-other-options
  107. # By default, Conduit uses a relatively low value of 20.
  108. matrix_conduit_rocksdb_max_open_files: 64
  109. # Enables registration. If set to false, no users can register on this server.
  110. matrix_conduit_allow_registration: false
  111. matrix_conduit_allow_federation: true
  112. # Enable the display name lightning bolt on registration.
  113. matrix_conduit_enable_lightning_bolt: true
  114. matrix_conduit_trusted_servers:
  115. - "matrix.org"
  116. # How many requests Conduit sends to other servers at the same time
  117. matrix_conduit_max_concurrent_requests: 100
  118. # TURN integration.
  119. # See: https://gitlab.com/famedly/conduit/-/blob/next/TURN.md
  120. matrix_conduit_turn_uris: []
  121. matrix_conduit_turn_secret: ''
  122. matrix_conduit_turn_username: ''
  123. matrix_conduit_turn_password: ''