Matrix Docker Ansible eploy
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

207 řádky
12 KiB

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