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.
 
 

309 rivejä
18 KiB

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