Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

150 строки
9.5 KiB

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