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.
 
 

177 satır
10 KiB

  1. # SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. # Project source code URL: https://github.com/ajbura/cinny
  6. matrix_client_cinny_enabled: true
  7. matrix_client_cinny_container_image_self_build: false
  8. matrix_client_cinny_container_image_self_build_repo: "https://github.com/ajbura/cinny.git"
  9. # renovate: datasource=docker depName=ajbura/cinny
  10. matrix_client_cinny_version: v4.2.3
  11. matrix_client_cinny_docker_image: "{{ matrix_client_cinny_docker_image_name_prefix }}ajbura/cinny:{{ matrix_client_cinny_version }}"
  12. matrix_client_cinny_docker_image_name_prefix: "{{ 'localhost/' if matrix_client_cinny_container_image_self_build else matrix_container_global_registry_prefix }}"
  13. matrix_client_cinny_docker_image_force_pull: "{{ matrix_client_cinny_docker_image.endswith(':latest') }}"
  14. matrix_client_cinny_data_path: "{{ matrix_base_data_path }}/client-cinny"
  15. matrix_client_cinny_docker_src_files_path: "{{ matrix_client_cinny_data_path }}/docker-src"
  16. # The base container network
  17. matrix_client_cinny_container_network: ''
  18. # A list of additional container networks that the container would be connected to.
  19. # The role does not create these networks, so make sure they already exist.
  20. # Use this to expose this container to a reverse proxy, which runs in a different container network.
  21. matrix_client_cinny_container_additional_networks: []
  22. # Controls whether the container exposes its HTTP port (tcp/8080 in the container).
  23. #
  24. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8768"), or empty string to not expose.
  25. matrix_client_cinny_container_http_host_bind_port: ''
  26. # matrix_client_cinny_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  27. # See `../templates/labels.j2` for details.
  28. #
  29. # To inject your own other container labels, see `matrix_client_cinny_container_labels_additional_labels`.
  30. matrix_client_cinny_container_labels_traefik_enabled: true
  31. matrix_client_cinny_container_labels_traefik_docker_network: "{{ matrix_client_cinny_container_network }}"
  32. matrix_client_cinny_container_labels_traefik_hostname: "{{ matrix_client_cinny_hostname }}"
  33. # The path prefix must either be `/` or not end with a slash (e.g. `/cinny`).
  34. matrix_client_cinny_container_labels_traefik_path_prefix: "{{ matrix_client_cinny_path_prefix }}"
  35. matrix_client_cinny_container_labels_traefik_rule: "Host(`{{ matrix_client_cinny_container_labels_traefik_hostname }}`){% if matrix_client_cinny_container_labels_traefik_path_prefix != '/' %} && PathPrefix(`{{ matrix_client_cinny_container_labels_traefik_path_prefix }}`){% endif %}"
  36. matrix_client_cinny_container_labels_traefik_priority: 0
  37. matrix_client_cinny_container_labels_traefik_entrypoints: web-secure
  38. matrix_client_cinny_container_labels_traefik_tls: "{{ matrix_client_cinny_container_labels_traefik_entrypoints != 'web' }}"
  39. matrix_client_cinny_container_labels_traefik_tls_certResolver: default # noqa var-naming
  40. # Controls whether a compression middleware will be injected into the middlewares list.
  41. # This compression middleware is supposed to be defined elsewhere (using labels or a File provider, etc.) and is merely referenced by this router.
  42. matrix_client_cinny_container_labels_traefik_compression_middleware_enabled: false
  43. matrix_client_cinny_container_labels_traefik_compression_middleware_name: ""
  44. # Controls which additional headers to attach to all HTTP responses.
  45. # To add your own headers, use `matrix_client_cinny_container_labels_traefik_additional_response_headers_custom`
  46. matrix_client_cinny_container_labels_traefik_additional_response_headers: "{{ matrix_client_cinny_container_labels_traefik_additional_response_headers_auto | combine(matrix_client_cinny_container_labels_traefik_additional_response_headers_custom) }}"
  47. matrix_client_cinny_container_labels_traefik_additional_response_headers_auto: |
  48. {{
  49. {}
  50. | combine ({'X-XSS-Protection': matrix_client_cinny_http_header_xss_protection} if matrix_client_cinny_http_header_xss_protection else {})
  51. | combine ({'X-Frame-Options': matrix_client_cinny_http_header_frame_options} if matrix_client_cinny_http_header_frame_options else {})
  52. | combine ({'X-Content-Type-Options': matrix_client_cinny_http_header_content_type_options} if matrix_client_cinny_http_header_content_type_options else {})
  53. | combine ({'Content-Security-Policy': matrix_client_cinny_http_header_content_security_policy} if matrix_client_cinny_http_header_content_security_policy else {})
  54. | combine ({'Permission-Policy': matrix_client_cinny_http_header_content_permission_policy} if matrix_client_cinny_http_header_content_permission_policy else {})
  55. | combine ({'Strict-Transport-Security': matrix_client_cinny_http_header_strict_transport_security} if matrix_client_cinny_http_header_strict_transport_security and matrix_client_cinny_container_labels_traefik_tls else {})
  56. }}
  57. matrix_client_cinny_container_labels_traefik_additional_response_headers_custom: {}
  58. # matrix_client_cinny_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  59. # See `../templates/labels.j2` for details.
  60. #
  61. # Example:
  62. # matrix_client_cinny_container_labels_additional_labels: |
  63. # my.label=1
  64. # another.label="here"
  65. matrix_client_cinny_container_labels_additional_labels: ''
  66. # A list of extra arguments to pass to the container
  67. matrix_client_cinny_container_extra_arguments: []
  68. # List of systemd services that matrix-client-cinny.service depends on
  69. matrix_client_cinny_systemd_required_services_list: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  70. # Specifies the value of the `X-XSS-Protection` header
  71. # Stops pages from loading when they detect reflected cross-site scripting (XSS) attacks.
  72. #
  73. # Learn more about it is here:
  74. # - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection
  75. # - https://portswigger.net/web-security/cross-site-scripting/reflected
  76. matrix_client_cinny_http_header_xss_protection: "1; mode=block"
  77. # Specifies the value of the `X-Frame-Options` header which controls whether framing can happen.
  78. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
  79. matrix_client_cinny_http_header_frame_options: SAMEORIGIN
  80. # Specifies the value of the `X-Content-Type-Options` header.
  81. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options
  82. matrix_client_cinny_http_header_content_type_options: nosniff
  83. # Specifies the value of the `Content-Security-Policy` header.
  84. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
  85. matrix_client_cinny_http_header_content_security_policy: frame-ancestors 'self'
  86. # Specifies the value of the `Permission-Policy` header.
  87. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permission-Policy
  88. matrix_client_cinny_http_header_content_permission_policy: "{{ 'interest-cohort=()' if matrix_client_cinny_floc_optout_enabled else '' }}"
  89. # Specifies the value of the `Strict-Transport-Security` header.
  90. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
  91. matrix_client_cinny_http_header_strict_transport_security: "max-age=31536000; includeSubDomains{{ '; preload' if matrix_client_cinny_hsts_preload_enabled else '' }}"
  92. # Controls whether to send a "Permissions-Policy interest-cohort=();" header along with all responses
  93. #
  94. # Learn more about what it is here:
  95. # - https://www.eff.org/deeplinks/2021/03/googles-floc-terrible-idea
  96. # - https://paramdeo.com/blog/opting-your-website-out-of-googles-floc-network
  97. # - https://amifloced.org/
  98. #
  99. # Of course, a better solution is to just stop using browsers (like Chrome), which participate in such tracking practices.
  100. # See: `matrix_client_cinny_content_permission_policy`
  101. matrix_client_cinny_floc_optout_enabled: true
  102. # Controls if HSTS preloading is enabled
  103. #
  104. # In its strongest and recommended form, the [HSTS policy](https://www.chromium.org/hsts) includes all subdomains, and
  105. # indicates a willingness to be "preloaded" into browsers:
  106. # `Strict-Transport-Security: max-age=31536000; includeSubDomains; preload`
  107. # For more information visit:
  108. # - https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security
  109. # - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
  110. # - https://hstspreload.org/#opt-in
  111. # See: `matrix_client_cinny_http_header_strict_transport_security`
  112. matrix_client_cinny_hsts_preload_enabled: false
  113. matrix_client_cinny_scheme: https
  114. # The hostname at which Cinny is served.
  115. # Only works with with Traefik reverse-proxying.
  116. matrix_client_cinny_hostname: "{{ matrix_server_fqn_cinny }}"
  117. # The path at which Cinny is exposed.
  118. # This value must either be `/` or not end with a slash (e.g. `/cinny`).
  119. matrix_client_cinny_path_prefix: /
  120. # Controls whether the self-check feature should validate SSL certificates.
  121. matrix_client_cinny_self_check_validate_certificates: true
  122. # config.json
  123. matrix_client_cinny_default_hs_url: ""
  124. # Default Cinny configuration template which covers the generic use case.
  125. # You can customize it by controlling the various variables inside it.
  126. #
  127. # For a more advanced customization, you can extend the default (see `matrix_client_cinny_configuration_extension_json`)
  128. # or completely replace this variable with your own template.
  129. #
  130. # The side-effect of this lookup is that Ansible would even parse the JSON for us, returning a dict.
  131. # This is unlike what it does when looking up YAML template files (no automatic parsing there).
  132. matrix_client_cinny_configuration_default: "{{ lookup('template', 'templates/config.json.j2') }}"
  133. # Your custom JSON configuration for Cinny should go to `matrix_client_cinny_configuration_extension_json`.
  134. # This configuration extends the default starting configuration (`matrix_client_cinny_configuration_default`).
  135. #
  136. # You can override individual variables from the default configuration, or introduce new ones.
  137. #
  138. # If you need something more special, you can take full control by
  139. # completely redefining `matrix_client_cinny_configuration_default`.
  140. matrix_client_cinny_configuration_extension_json: '{}'
  141. matrix_client_cinny_configuration_extension: "{{ matrix_client_cinny_configuration_extension_json | from_json if matrix_client_cinny_configuration_extension_json | from_json is mapping else {} }}"
  142. # Holds the final Cinny configuration (a combination of the default and its extension).
  143. # You most likely don't need to touch this variable. Instead, see `matrix_client_cinny_configuration_default`.
  144. matrix_client_cinny_configuration: "{{ matrix_client_cinny_configuration_default | combine(matrix_client_cinny_configuration_extension, recursive=True) }}"