Matrix Docker Ansible eploy
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 

103 рядки
6.0 KiB

  1. # SPDX-FileCopyrightText: 2026 MDAD project contributors
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. # Project source code URL: https://github.com/commetchat/commet
  6. matrix_client_commet_enabled: true
  7. # The git branch, tag, or SHA to build from
  8. matrix_client_commet_version: "main"
  9. # The hostname at which Commet is served (e.g. commet.example.com)
  10. matrix_client_commet_hostname: ""
  11. # The path at which Commet is exposed.
  12. # This value must either be `/` or not end with a slash (e.g. `/commet`).
  13. matrix_client_commet_path_prefix: /
  14. matrix_client_commet_base_path: "{{ matrix_base_data_path }}/client-commet"
  15. matrix_client_commet_container_src_path: "{{ matrix_client_commet_base_path }}/container-src"
  16. matrix_client_commet_config_path: "{{ matrix_client_commet_base_path }}/config"
  17. # Set to false to pull a pre-built image from a registry instead of building on the server.
  18. matrix_client_commet_container_image_self_build: true
  19. # Self-build settings (used when matrix_client_commet_container_image_self_build: true)
  20. matrix_client_commet_container_image_self_build_repo: "https://github.com/commetchat/commet.git"
  21. # Populated automatically after git clone in setup_install.yml
  22. matrix_client_commet_container_image_self_build_git_hash: ""
  23. matrix_client_commet_container_image_self_build_version_tag: "{{ matrix_client_commet_version }}"
  24. matrix_client_commet_container_image: "localhost/matrix-client-commet:{{ matrix_client_commet_version }}"
  25. # The in-container port nginx listens on
  26. matrix_client_commet_container_port: 8080
  27. # Optionally expose the container port on the host.
  28. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8765"), or empty string to not expose.
  29. matrix_client_commet_container_http_host_bind_port: ""
  30. # The base container network
  31. matrix_client_commet_container_network: ""
  32. # Additional container networks the container is connected to.
  33. # The role does not create these networks, so make sure they already exist.
  34. matrix_client_commet_container_additional_networks: []
  35. # Runtime configuration — mounted into the container, not baked into the image
  36. matrix_client_commet_default_homeserver: "matrix.org"
  37. # ---------------------------------------------------------------------------
  38. # Traefik labels
  39. # ---------------------------------------------------------------------------
  40. matrix_client_commet_container_labels_traefik_enabled: true
  41. matrix_client_commet_container_labels_traefik_docker_network: "{{ matrix_client_commet_container_network }}"
  42. matrix_client_commet_container_labels_traefik_hostname: "{{ matrix_client_commet_hostname }}"
  43. # The path prefix must either be `/` or not end with a slash (e.g. `/commet`).
  44. matrix_client_commet_container_labels_traefik_path_prefix: "{{ matrix_client_commet_path_prefix }}"
  45. matrix_client_commet_container_labels_traefik_rule: "Host(`{{ matrix_client_commet_container_labels_traefik_hostname }}`){% if matrix_client_commet_container_labels_traefik_path_prefix != '/' %} && PathPrefix(`{{ matrix_client_commet_container_labels_traefik_path_prefix }}`){% endif %}"
  46. matrix_client_commet_container_labels_traefik_priority: 0
  47. matrix_client_commet_container_labels_traefik_entrypoints: web-secure
  48. matrix_client_commet_container_labels_traefik_tls: "{{ matrix_client_commet_container_labels_traefik_entrypoints != 'web' }}"
  49. matrix_client_commet_container_labels_traefik_tls_certResolver: default # noqa var-naming
  50. # Controls whether a compression middleware will be injected into the middlewares list.
  51. matrix_client_commet_container_labels_traefik_compression_middleware_enabled: false
  52. matrix_client_commet_container_labels_traefik_compression_middleware_name: ""
  53. # Additional response headers (auto-built from security header variables below)
  54. matrix_client_commet_container_labels_traefik_additional_response_headers: "{{ matrix_client_commet_container_labels_traefik_additional_response_headers_auto | combine(matrix_client_commet_container_labels_traefik_additional_response_headers_custom) }}"
  55. matrix_client_commet_container_labels_traefik_additional_response_headers_auto: |
  56. {{
  57. {}
  58. | combine({'X-XSS-Protection': matrix_client_commet_http_header_xss_protection} if matrix_client_commet_http_header_xss_protection else {})
  59. | combine({'X-Content-Type-Options': matrix_client_commet_http_header_content_type_options} if matrix_client_commet_http_header_content_type_options else {})
  60. | combine({'Content-Security-Policy': matrix_client_commet_http_header_content_security_policy} if matrix_client_commet_http_header_content_security_policy else {})
  61. | combine({'Strict-Transport-Security': matrix_client_commet_http_header_strict_transport_security} if matrix_client_commet_http_header_strict_transport_security and matrix_client_commet_container_labels_traefik_tls else {})
  62. }}
  63. matrix_client_commet_container_labels_traefik_additional_response_headers_custom: {}
  64. # Additional container labels (multiline string)
  65. matrix_client_commet_container_labels_additional_labels: ""
  66. # Extra arguments to pass to docker create
  67. matrix_client_commet_container_extra_arguments: []
  68. # ---------------------------------------------------------------------------
  69. # HTTP security headers
  70. # ---------------------------------------------------------------------------
  71. matrix_client_commet_http_header_xss_protection: "1; mode=block"
  72. matrix_client_commet_http_header_content_type_options: nosniff
  73. matrix_client_commet_http_header_content_security_policy: "frame-ancestors 'self'"
  74. matrix_client_commet_http_header_strict_transport_security: "max-age=31536000; includeSubDomains"
  75. # ---------------------------------------------------------------------------
  76. # Systemd
  77. # ---------------------------------------------------------------------------
  78. matrix_client_commet_systemd_required_services_list: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  79. # matrix_client_commet_restart_necessary is automatically set during installation
  80. # to signal whether the service should be restarted after setup.
  81. matrix_client_commet_restart_necessary: false