Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

99 lines
5.9 KiB

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