Matrix Docker Ansible eploy
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

104 satır
6.1 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. matrix_client_commet_container_image_force_pull: "{{ matrix_client_commet_container_image.endswith(':latest') or matrix_client_commet_container_image.endswith(':main') }}"
  26. # The in-container port nginx listens on
  27. matrix_client_commet_container_port: 8080
  28. # Optionally expose the container port on the host.
  29. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8765"), or empty string to not expose.
  30. matrix_client_commet_container_http_host_bind_port: ""
  31. # The base container network
  32. matrix_client_commet_container_network: ""
  33. # Additional container networks the container is connected to.
  34. # The role does not create these networks, so make sure they already exist.
  35. matrix_client_commet_container_additional_networks: []
  36. # Runtime configuration — mounted into the container, not baked into the image
  37. matrix_client_commet_default_homeserver: "matrix.org"
  38. # ---------------------------------------------------------------------------
  39. # Traefik labels
  40. # ---------------------------------------------------------------------------
  41. matrix_client_commet_container_labels_traefik_enabled: true
  42. matrix_client_commet_container_labels_traefik_docker_network: "{{ matrix_client_commet_container_network }}"
  43. matrix_client_commet_container_labels_traefik_hostname: "{{ matrix_client_commet_hostname }}"
  44. # The path prefix must either be `/` or not end with a slash (e.g. `/commet`).
  45. matrix_client_commet_container_labels_traefik_path_prefix: "{{ matrix_client_commet_path_prefix }}"
  46. 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 %}"
  47. matrix_client_commet_container_labels_traefik_priority: 0
  48. matrix_client_commet_container_labels_traefik_entrypoints: web-secure
  49. matrix_client_commet_container_labels_traefik_tls: "{{ matrix_client_commet_container_labels_traefik_entrypoints != 'web' }}"
  50. matrix_client_commet_container_labels_traefik_tls_certResolver: default # noqa var-naming
  51. # Controls whether a compression middleware will be injected into the middlewares list.
  52. matrix_client_commet_container_labels_traefik_compression_middleware_enabled: false
  53. matrix_client_commet_container_labels_traefik_compression_middleware_name: ""
  54. # Additional response headers (auto-built from security header variables below)
  55. 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) }}"
  56. matrix_client_commet_container_labels_traefik_additional_response_headers_auto: |
  57. {{
  58. {}
  59. | combine({'X-XSS-Protection': matrix_client_commet_http_header_xss_protection} if matrix_client_commet_http_header_xss_protection else {})
  60. | combine({'X-Content-Type-Options': matrix_client_commet_http_header_content_type_options} if matrix_client_commet_http_header_content_type_options else {})
  61. | combine({'Content-Security-Policy': matrix_client_commet_http_header_content_security_policy} if matrix_client_commet_http_header_content_security_policy else {})
  62. | 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 {})
  63. }}
  64. matrix_client_commet_container_labels_traefik_additional_response_headers_custom: {}
  65. # Additional container labels (multiline string)
  66. matrix_client_commet_container_labels_additional_labels: ""
  67. # Extra arguments to pass to docker create
  68. matrix_client_commet_container_extra_arguments: []
  69. # ---------------------------------------------------------------------------
  70. # HTTP security headers
  71. # ---------------------------------------------------------------------------
  72. matrix_client_commet_http_header_xss_protection: "1; mode=block"
  73. matrix_client_commet_http_header_content_type_options: nosniff
  74. matrix_client_commet_http_header_content_security_policy: "frame-ancestors 'self'"
  75. matrix_client_commet_http_header_strict_transport_security: "max-age=31536000; includeSubDomains"
  76. # ---------------------------------------------------------------------------
  77. # Systemd
  78. # ---------------------------------------------------------------------------
  79. matrix_client_commet_systemd_required_services_list: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  80. # matrix_client_commet_restart_necessary is automatically set during installation
  81. # to signal whether the service should be restarted after setup.
  82. matrix_client_commet_restart_necessary: false