Matrix Docker Ansible eploy
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

330 lignes
20 KiB

  1. # SPDX-FileCopyrightText: 2023 - 2024 Nikita Chernyi
  2. # SPDX-FileCopyrightText: 2023 Samuel Meenzen
  3. # SPDX-FileCopyrightText: 2024 - 2025 Slavi Pantaleev
  4. # SPDX-FileCopyrightText: 2024 - 2025 Suguru Hirahara
  5. #
  6. # SPDX-License-Identifier: AGPL-3.0-or-later
  7. ---
  8. # Project source code URL: https://github.com/SchildiChat/schildichat-desktop
  9. matrix_client_schildichat_enabled: true
  10. matrix_client_schildichat_container_image_self_build: false
  11. matrix_client_schildichat_container_image_self_build_repo: "https://github.com/SchildiChat/schildichat-desktop.git"
  12. matrix_client_schildichat_container_image_self_build_version: "{{ 'lite' if matrix_client_schildichat_version == 'latest' else ('v' + matrix_client_schildichat_version) }}"
  13. # Controls whether to patch webpack.config.js when self-building, so that building can pass on low-memory systems (< 4 GB RAM):
  14. # - https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1357
  15. # - https://github.com/element-hq/element-web/issues/19544
  16. matrix_client_schildichat_container_image_self_build_low_memory_system_patch_enabled: "{{ ansible_memtotal_mb < 4096 }}"
  17. # renovate: datasource=docker depName=ghcr.io/etkecc/schildichat-web
  18. matrix_client_schildichat_version: 1.11.109-sc.0.test.0
  19. matrix_client_schildichat_container_image: "{{ matrix_client_schildichat_container_image_registry_prefix }}etkecc/schildichat-web:{{ matrix_client_schildichat_version }}"
  20. matrix_client_schildichat_container_image_registry_prefix: "{{ 'localhost/' if matrix_client_schildichat_container_image_self_build else matrix_client_schildichat_container_image_registry_prefix_upstream }}"
  21. matrix_client_schildichat_container_image_registry_prefix_upstream: "{{ matrix_client_schildichat_container_image_registry_prefix_upstream_default }}"
  22. matrix_client_schildichat_container_image_registry_prefix_upstream_default: ghcr.io/
  23. matrix_client_schildichat_container_image_force_pull: "{{ matrix_client_schildichat_container_image.endswith(':latest') }}"
  24. matrix_client_schildichat_data_path: "{{ matrix_base_data_path }}/client-schildichat"
  25. matrix_client_schildichat_container_src_files_path: "{{ matrix_client_schildichat_data_path }}/docker-src"
  26. # The base container network
  27. matrix_client_schildichat_container_network: ''
  28. # A list of additional container networks that the container would be connected to.
  29. # The role does not create these networks, so make sure they already exist.
  30. # Use this to expose this container to a reverse proxy, which runs in a different container network.
  31. matrix_client_schildichat_container_additional_networks: []
  32. # Controls whether the matrix-client-schildichat container exposes its HTTP port (tcp/8080 in the container).
  33. #
  34. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8765"), or empty string to not expose.
  35. matrix_client_schildichat_container_http_host_bind_port: ''
  36. # matrix_client_schildichat_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  37. # See `../templates/labels.j2` for details.
  38. #
  39. # To inject your own other container labels, see `matrix_client_schildichat_container_labels_additional_labels`.
  40. matrix_client_schildichat_container_labels_traefik_enabled: true
  41. matrix_client_schildichat_container_labels_traefik_docker_network: "{{ matrix_client_schildichat_container_network }}"
  42. matrix_client_schildichat_container_labels_traefik_hostname: "{{ matrix_client_schildichat_hostname }}"
  43. # The path prefix must either be `/` or not end with a slash (e.g. `/schildichat`).
  44. matrix_client_schildichat_container_labels_traefik_path_prefix: "{{ matrix_client_schildichat_path_prefix }}"
  45. matrix_client_schildichat_container_labels_traefik_rule: "Host(`{{ matrix_client_schildichat_container_labels_traefik_hostname }}`){% if matrix_client_schildichat_container_labels_traefik_path_prefix != '/' %} && PathPrefix(`{{ matrix_client_schildichat_container_labels_traefik_path_prefix }}`){% endif %}"
  46. matrix_client_schildichat_container_labels_traefik_priority: 0
  47. matrix_client_schildichat_container_labels_traefik_entrypoints: web-secure
  48. matrix_client_schildichat_container_labels_traefik_tls: "{{ matrix_client_schildichat_container_labels_traefik_entrypoints != 'web' }}"
  49. matrix_client_schildichat_container_labels_traefik_tls_certResolver: default # noqa var-naming
  50. # Controls which additional headers to attach to all HTTP responses.
  51. # To add your own headers, use `matrix_client_schildichat_container_labels_traefik_additional_response_headers_custom`
  52. matrix_client_schildichat_container_labels_traefik_additional_response_headers: "{{ matrix_client_schildichat_container_labels_traefik_additional_response_headers_auto | combine(matrix_client_schildichat_container_labels_traefik_additional_response_headers_custom) }}"
  53. matrix_client_schildichat_container_labels_traefik_additional_response_headers_auto: |
  54. {{
  55. {}
  56. | combine ({'X-XSS-Protection': matrix_client_schildichat_http_header_xss_protection} if matrix_client_schildichat_http_header_xss_protection else {})
  57. | combine ({'X-Content-Type-Options': matrix_client_schildichat_http_header_content_type_options} if matrix_client_schildichat_http_header_content_type_options else {})
  58. | combine ({'Content-Security-Policy': matrix_client_schildichat_http_header_content_security_policy} if matrix_client_schildichat_http_header_content_security_policy else {})
  59. | combine ({'Permission-Policy': matrix_client_schildichat_http_header_content_permission_policy} if matrix_client_schildichat_http_header_content_permission_policy else {})
  60. | combine ({'Strict-Transport-Security': matrix_client_schildichat_http_header_strict_transport_security} if matrix_client_schildichat_http_header_strict_transport_security and matrix_client_schildichat_container_labels_traefik_tls else {})
  61. }}
  62. matrix_client_schildichat_container_labels_traefik_additional_response_headers_custom: {}
  63. # matrix_client_schildichat_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  64. # See `../templates/labels.j2` for details.
  65. #
  66. # Example:
  67. # matrix_client_schildichat_container_labels_additional_labels: |
  68. # my.label=1
  69. # another.label="here"
  70. matrix_client_schildichat_container_labels_additional_labels: ''
  71. # A list of extra arguments to pass to the container
  72. matrix_client_schildichat_container_extra_arguments: []
  73. # List of systemd services that matrix-client-schildichat.service depends on
  74. matrix_client_schildichat_systemd_required_services_list: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  75. # Specifies the value of the `X-XSS-Protection` header
  76. # Stops pages from loading when they detect reflected cross-site scripting (XSS) attacks.
  77. #
  78. # Learn more about it is here:
  79. # - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection
  80. # - https://portswigger.net/web-security/cross-site-scripting/reflected
  81. matrix_client_schildichat_http_header_xss_protection: "1; mode=block"
  82. # Specifies the value of the `X-Content-Type-Options` header.
  83. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options
  84. matrix_client_schildichat_http_header_content_type_options: nosniff
  85. # Specifies the value of the `Content-Security-Policy` header.
  86. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
  87. matrix_client_schildichat_http_header_content_security_policy: frame-ancestors 'self'
  88. # Specifies the value of the `Permission-Policy` header.
  89. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permission-Policy
  90. matrix_client_schildichat_http_header_content_permission_policy: "{{ 'interest-cohort=()' if matrix_client_schildichat_floc_optout_enabled else '' }}"
  91. # Specifies the value of the `Strict-Transport-Security` header.
  92. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
  93. matrix_client_schildichat_http_header_strict_transport_security: "max-age=31536000; includeSubDomains{{ '; preload' if matrix_client_schildichat_hsts_preload_enabled else '' }}"
  94. # Controls whether to send a "Permissions-Policy interest-cohort=();" header along with all responses
  95. #
  96. # Learn more about what it is here:
  97. # - https://www.eff.org/deeplinks/2021/03/googles-floc-terrible-idea
  98. # - https://paramdeo.com/blog/opting-your-website-out-of-googles-floc-network
  99. # - https://amifloced.org/
  100. #
  101. # Of course, a better solution is to just stop using browsers (like Chrome), which participate in such tracking practices.
  102. # See: `matrix_client_schildichat_content_permission_policy`
  103. matrix_client_schildichat_floc_optout_enabled: true
  104. # Controls if HSTS preloading is enabled
  105. #
  106. # In its strongest and recommended form, the [HSTS policy](https://www.chromium.org/hsts) includes all subdomains, and
  107. # indicates a willingness to be "preloaded" into browsers:
  108. # `Strict-Transport-Security: max-age=31536000; includeSubDomains; preload`
  109. # For more information visit:
  110. # - https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security
  111. # - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
  112. # - https://hstspreload.org/#opt-in
  113. # See: `matrix_client_schildichat_http_header_strict_transport_security`
  114. matrix_client_schildichat_hsts_preload_enabled: false
  115. matrix_client_schildichat_scheme: https
  116. # The hostname at which SchildiChat Web is served.
  117. matrix_client_schildichat_hostname: "{{ matrix_server_fqn_schildichat }}"
  118. # The path at which SchildiChat Web is exposed.
  119. # This value must either be `/` or not end with a slash (e.g. `/schildichat`).
  120. matrix_client_schildichat_path_prefix: /
  121. # SchildiChat Web config.json customizations
  122. matrix_client_schildichat_default_server_name: "{{ matrix_domain }}"
  123. matrix_client_schildichat_default_hs_url: ""
  124. matrix_client_schildichat_default_is_url: ~
  125. matrix_client_schildichat_map_style_url: "{{ matrix_client_schildichat_scheme }}://{{ matrix_client_schildichat_hostname }}/map_style.json"
  126. matrix_client_schildichat_disable_custom_urls: true
  127. matrix_client_schildichat_disable_guests: true
  128. matrix_client_schildichat_integrations_ui_url: "https://scalar.vector.im/"
  129. matrix_client_schildichat_integrations_rest_url: "https://scalar.vector.im/api"
  130. matrix_client_schildichat_integrations_widgets_urls: ["https://scalar.vector.im/api"]
  131. matrix_client_schildichat_integrations_jitsi_widget_url: "https://scalar.vector.im/api/widgets/jitsi.html"
  132. matrix_client_schildichat_permalink_prefix: "https://matrix.to" # noqa var-naming
  133. matrix_client_schildichat_bug_report_endpoint_url: "https://element.io/bugreports/submit"
  134. matrix_client_schildichat_show_lab_settings: true # noqa var-naming
  135. # SchildiChat Web public room directory server(s)
  136. matrix_client_schildichat_room_directory_servers: ['matrix.org']
  137. # Branding of SchildiChat Web
  138. matrix_client_schildichat_brand: "schildichat"
  139. # URL to Logo on welcome page
  140. matrix_client_schildichat_welcome_logo: "themes/element/img/logos/element-logo.svg"
  141. # URL of link on welcome image
  142. matrix_client_schildichat_welcome_logo_link: "https://schildi.chat"
  143. matrix_client_schildichat_welcome_headline: "_t('Welcome to SchildiChat')"
  144. matrix_client_schildichat_welcome_text: "_t('Decentralised, encrypted chat &amp; collaboration powered by [matrix]')"
  145. # Links, shown in footer of welcome page:
  146. # [{"text": "Link text", "url": "https://link.target"}, {"text": "Other link"}]
  147. matrix_client_schildichat_branding_auth_footer_links: ~ # noqa var-naming
  148. # URL to image, shown during Login
  149. matrix_client_schildichat_branding_auth_header_logo_url: "{{ matrix_client_schildichat_welcome_logo }}" # noqa var-naming
  150. # URL to Wallpaper, shown in background of welcome page
  151. matrix_client_schildichat_branding_welcome_background_url: ~ # noqa var-naming
  152. matrix_client_schildichat_page_template_welcome_path: "{{ role_path }}/templates/welcome.html.j2"
  153. # By default, there's no SchildiChat Web homepage (when logged in). If you wish to have one,
  154. # point this to a `home.html` template file on your local filesystem.
  155. matrix_client_schildichat_embedded_pages_home_path: ~
  156. matrix_client_schildichat_jitsi_preferred_domain: '' # noqa var-naming
  157. # Controls whether the self-check feature should validate SSL certificates.
  158. matrix_client_schildichat_self_check_validate_certificates: true
  159. # don't show the registration button on welcome page
  160. matrix_client_schildichat_registration_enabled: false
  161. # An optional ISO 3166 alpha2 country code (eg: GB, the default) to use when showing phone number inputs
  162. matrix_client_schildichat_default_country_code: "GB"
  163. # Controls whether presence will be enabled
  164. matrix_client_schildichat_enable_presence_by_hs_url: ~
  165. # Controls whether custom SchildiChat Web themes will be installed.
  166. # When enabled, all themes found in the `matrix_client_schildichat_themes_repository_url` repository
  167. # will be installed and enabled automatically.
  168. matrix_client_schildichat_themes_enabled: false
  169. matrix_client_schildichat_themes_repository_url: https://github.com/aaronraimist/element-themes
  170. matrix_client_schildichat_themes_repository_version: master
  171. # Controls the default theme
  172. matrix_client_schildichat_default_theme: 'light'
  173. # Controls the `setting_defaults.custom_themes` setting of the SchildiChat Web configuration.
  174. # You can use this setting to define custom themes.
  175. #
  176. # Also, look at `matrix_client_schildichat_themes_enabled` for a way to pull in a bunch of custom themes automatically.
  177. # If you define your own themes here and set `matrix_client_schildichat_themes_enabled: true`, your themes will be preserved as well.
  178. #
  179. # Note that for a custom theme to work well, all SchildiChat Web instances that you use must have the same theme installed.
  180. matrix_client_schildichat_setting_defaults_custom_themes: [] # noqa var-naming
  181. # Default SchildiChat Web configuration template which covers the generic use case.
  182. # You can customize it by controlling the various variables inside it.
  183. #
  184. # For a more advanced customization, you can extend the default (see `matrix_client_schildichat_configuration_extension_json`)
  185. # or completely replace this variable with your own template.
  186. #
  187. # The side-effect of this lookup is that Ansible would even parse the JSON for us, returning a dict.
  188. # This is unlike what it does when looking up YAML template files (no automatic parsing there).
  189. matrix_client_schildichat_configuration_default: "{{ lookup('template', 'templates/config.json.j2', convert_data=False) | from_json }}"
  190. # Your custom JSON configuration for SchildiChat Web should go to `matrix_client_schildichat_configuration_extension_json`.
  191. # This configuration extends the default starting configuration (`matrix_client_schildichat_configuration_default`).
  192. #
  193. # You can override individual variables from the default configuration, or introduce new ones.
  194. #
  195. # If you need something more special, you can take full control by
  196. # completely redefining `matrix_client_schildichat_configuration_default`.
  197. #
  198. # Example configuration extension follows:
  199. #
  200. # matrix_client_schildichat_configuration_extension_json: |
  201. # {
  202. # "disable_3pid_login": true,
  203. # "disable_login_language_selector": true
  204. # }
  205. matrix_client_schildichat_configuration_extension_json: '{}'
  206. matrix_client_schildichat_configuration_extension: "{{ matrix_client_schildichat_configuration_extension_json | from_json if matrix_client_schildichat_configuration_extension_json | from_json is mapping else {} }}"
  207. # Holds the final SchildiChat Web configuration (a combination of the default and its extension).
  208. # You most likely don't need to touch this variable. Instead, see `matrix_client_schildichat_configuration_default`.
  209. matrix_client_schildichat_configuration: "{{ matrix_client_schildichat_configuration_default | combine(matrix_client_schildichat_configuration_extension, recursive=True) }}"
  210. # SchildiChat Location sharing functionality
  211. # More info: https://element.io/blog/element-launches-e2ee-location-sharing/
  212. # How to host your own map tile server: https://matrix.org/docs/guides/map-tile-server
  213. matrix_client_schildichat_location_sharing_enabled: false
  214. # Default SchildiChat location sharing map style configuration template which covers the generic use case.
  215. # You can customize it by controlling the various variables inside it.
  216. #
  217. # For a more advanced customization, you can extend the default (see `matrix_client_schildichat_location_sharing_map_style_extension_json`)
  218. # or completely replace this variable with your own template.
  219. #
  220. # The side-effect of this lookup is that Ansible would even parse the JSON for us, returning a dict.
  221. # This is unlike what it does when looking up YAML template files (no automatic parsing there).
  222. matrix_client_schildichat_location_sharing_map_style_default: "{{ lookup('template', 'templates/map_style.json.j2', convert_data=False) | from_json }}"
  223. # Your custom JSON configuration for SchildiChat location sharing map style should go to `matrix_client_schildichat_location_sharing_map_style_extension_json`.
  224. # This configuration extends the default starting configuration (`matrix_client_schildichat_location_sharing_map_style_default`).
  225. #
  226. # You can override individual variables from the default configuration, or introduce new ones.
  227. #
  228. # If you need something more special, you can take full control by
  229. # completely redefining `matrix_client_schildichat_location_sharing_map_style_default`.
  230. #
  231. # Example configuration override follows:
  232. #
  233. # matrix_client_schildichat_location_sharing_map_style_extension_json: |
  234. # {
  235. # "sources": {
  236. # "localsource": {
  237. # "tileSize": 512
  238. # }
  239. # }
  240. # }
  241. #
  242. # Example configuration extension follows:
  243. #
  244. # matrix_client_schildichat_location_sharing_map_style_extension_json: |
  245. # {
  246. # "sources": {
  247. # "anothersource": {
  248. # "attribution": "",
  249. # "tileSize": 256,
  250. # "tiles": ["https://anothertile.example.com/{z}/{x}/{y}.png"],
  251. # "type": "raster"
  252. # }
  253. # }
  254. # }
  255. matrix_client_schildichat_location_sharing_map_style_extension_json: '{}'
  256. matrix_client_schildichat_location_sharing_map_style_extension: "{{ matrix_client_schildichat_location_sharing_map_style_extension_json | from_json if matrix_client_schildichat_location_sharing_map_style_extension_json | from_json is mapping else {} }}"
  257. # Holds the final SchildiChat location sharing map style configuration (a combination of the default and its extension).
  258. # You most likely don't need to touch this variable. Instead, see `matrix_client_schildichat_location_sharing_map_style_default`.
  259. matrix_client_schildichat_location_sharing_map_style: "{{ matrix_client_schildichat_location_sharing_map_style_default | combine(matrix_client_schildichat_location_sharing_map_style_extension, recursive=True) }}"
  260. # Example tile servers configuration
  261. # matrix_client_schildichat_location_sharing_map_style_content_sources_localsource_tiles: ["https://tile.example.com/{z}/{x}/{y}.png"]
  262. # or
  263. # matrix_client_schildichat_location_sharing_map_style_content_sources_localsource_tiles: ["https://s1.example.com/{z}/{x}/{y}.png", "https://s2.example.com/{z}/{x}/{y}.png", "https://s3.example.com/{z}/{x}/{y}.png"]
  264. matrix_client_schildichat_location_sharing_map_style_content_sources_localsource_tiles: []
  265. # Map attribution (optional):
  266. # Attribution for OpenStreetMap would be like this:
  267. # matrix_client_schildichat_location_sharing_map_style_content_sources_localsource_attribution: "&copy; <a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\">OpenStreetMap</a> contributors"
  268. # Leave blank, if map does not require attribution.
  269. matrix_client_schildichat_location_sharing_map_style_content_sources_localsource_attribution: ""
  270. # matrix_client_schildichat_restart_necessary controls whether the service
  271. # will be restarted (when true) or merely started (when false) by the
  272. # systemd service manager role (when conditional restart is enabled).
  273. #
  274. # This value is automatically computed during installation based on whether
  275. # any configuration files, the systemd service file, or the container image changed.
  276. # The default of `false` means "no restart needed" — appropriate when the role's
  277. # installation tasks haven't run (e.g., due to --tags skipping them).
  278. matrix_client_schildichat_restart_necessary: false