Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

182 líneas
10 KiB

  1. # SPDX-FileCopyrightText: 2023 - 2024 Nikita Chernyi
  2. # SPDX-FileCopyrightText: 2023 - 2025 Slavi Pantaleev
  3. # SPDX-FileCopyrightText: 2024 Sergio Durigan Junior
  4. # SPDX-FileCopyrightText: 2025 MASH project contributors
  5. # SPDX-FileCopyrightText: 2025 Suguru Hirahara
  6. #
  7. # SPDX-License-Identifier: AGPL-3.0-or-later
  8. ---
  9. # Project source code URL: https://app.radicle.xyz/nodes/seed.radicle.garden/rad%3Az3Re1EQbd186vUQDwHByYiLadsVWY
  10. matrixto_enabled: true
  11. matrixto_identifier: matrixto
  12. matrixto_base_path: "/{{ matrixto_identifier }}"
  13. matrixto_version: 1.2.17-1
  14. matrixto_uid: ""
  15. matrixto_gid: ""
  16. matrixto_scheme: https
  17. # The hostname at which Matrix.to is served.
  18. matrixto_hostname: ""
  19. # The path at which Matrix.to is exposed.
  20. # This value must either be `/` or not end with a slash (e.g. `/matrixto`).
  21. #
  22. # Hosting Matrix.to under a subpath does not seem to be possible due to Matrix.to's
  23. # technical limitations.
  24. matrixto_path_prefix: /
  25. matrixto_container_image: "{{ matrixto_container_image_registry_prefix }}shirahara/matrixto:{{ matrixto_container_image_tag }}"
  26. matrixto_container_image_tag: "{{ matrixto_version }}"
  27. matrixto_container_image_registry_prefix: "{{ matrixto_container_image_registry_prefix_upstream }}"
  28. matrixto_container_image_registry_prefix_upstream: "{{ matrixto_container_image_registry_prefix_upstream_default }}"
  29. matrixto_container_image_registry_prefix_upstream_default: ""
  30. matrixto_container_image_force_pull: "{{ matrixto_container_image.endswith(':latest') }}"
  31. matrixto_container_image_self_build: true
  32. matrixto_container_image_self_build_name: "shirahara/matrixto:{{ matrixto_container_image_self_build_repo_version }}"
  33. matrixto_container_image_self_build_repo: "https://seed.radicle.garden/z3Re1EQbd186vUQDwHByYiLadsVWY.git"
  34. matrixto_container_image_self_build_repo_version: "{{ matrixto_version if matrixto_version != 'latest' else 'main' }}"
  35. matrixto_container_image_self_build_src_files_path: "{{ matrixto_base_path }}/docker-src"
  36. # Controls whether the container exposes its HTTP port (tcp/8080 in the container).
  37. #
  38. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:2586"), or empty string to not expose.
  39. matrixto_container_http_host_bind_port: ""
  40. # The base container network. It will be auto-created by this role if it doesn't exist already.
  41. matrixto_container_network: "{{ matrixto_identifier }}"
  42. # The port number in the container
  43. matrixto_container_http_port: 5000
  44. # A list of additional container networks that the container would be connected to.
  45. # The role does not create these networks, so make sure they already exist.
  46. # Use this to expose this container to another reverse proxy, which runs in a different container network.
  47. matrixto_container_additional_networks: "{{ matrixto_container_additional_networks_auto + matrixto_container_additional_networks_custom }}"
  48. matrixto_container_additional_networks_auto: []
  49. matrixto_container_additional_networks_custom: []
  50. # A list of additional "volumes" to mount in the container.
  51. # This list gets populated dynamically at runtime. You can provide a different default value,
  52. # if you wish to mount your own files into the container.
  53. # Contains definition objects like this: `{"type": "bind", "src": "/outside", "dst": "/inside", "options": "readonly"}.
  54. # See the `--mount` documentation for the `docker run` command.
  55. matrixto_container_additional_volumes: "{{ matrixto_container_additional_volumes_auto + matrixto_container_additional_volumes_custom }}"
  56. matrixto_container_additional_volumes_auto: []
  57. matrixto_container_additional_volumes_custom: []
  58. # matrixto_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  59. # See `../templates/labels.j2` for details.
  60. #
  61. # To inject your own other container labels, see `matrixto_container_labels_additional_labels`.
  62. matrixto_container_labels_traefik_enabled: true
  63. matrixto_container_labels_traefik_docker_network: "{{ matrixto_container_network }}"
  64. matrixto_container_labels_traefik_hostname: "{{ matrixto_hostname }}"
  65. # The path prefix must either be `/` or not end with a slash (e.g. `/matrixto`).
  66. matrixto_container_labels_traefik_path_prefix: "{{ matrixto_path_prefix }}"
  67. matrixto_container_labels_traefik_rule: "Host(`{{ matrixto_container_labels_traefik_hostname }}`){% if matrixto_container_labels_traefik_path_prefix != '/' %} && PathPrefix(`{{ matrixto_container_labels_traefik_path_prefix }}`){% endif %}"
  68. matrixto_container_labels_traefik_priority: 0
  69. matrixto_container_labels_traefik_entrypoints: web-secure
  70. matrixto_container_labels_traefik_tls: "{{ matrixto_container_labels_traefik_entrypoints != 'web' }}"
  71. matrixto_container_labels_traefik_tls_certResolver: default # noqa var-naming
  72. # Controls which additional headers to attach to all HTTP requests.
  73. # To add your own custom request headers, use `matrixto_container_labels_traefik_additional_request_headers_custom`
  74. matrixto_container_labels_traefik_additional_request_headers: "{{ matrixto_container_labels_traefik_additional_request_headers_auto | combine(matrixto_container_labels_traefik_additional_request_headers_custom) }}"
  75. matrixto_container_labels_traefik_additional_request_headers_auto: {}
  76. matrixto_container_labels_traefik_additional_request_headers_custom: {}
  77. # Controls which additional headers to attach to all HTTP responses.
  78. # To add your own custom response headers, use `matrixto_container_labels_traefik_additional_response_headers_custom`
  79. matrixto_container_labels_traefik_additional_response_headers: "{{ matrixto_container_labels_traefik_additional_response_headers_auto | combine(matrixto_container_labels_traefik_additional_response_headers_custom) }}"
  80. matrixto_container_labels_traefik_additional_response_headers_auto: |
  81. {{
  82. {}
  83. | combine ({'X-XSS-Protection': matrixto_http_header_xss_protection} if matrixto_http_header_xss_protection else {})
  84. | combine ({'X-Content-Type-Options': matrixto_http_header_content_type_options} if matrixto_http_header_content_type_options else {})
  85. | combine ({'Content-Security-Policy': matrixto_http_header_content_security_policy} if matrixto_http_header_content_security_policy else {})
  86. | combine ({'Permissions-Policy': matrixto_http_header_permissions_policy} if matrixto_http_header_permissions_policy else {})
  87. | combine ({'Strict-Transport-Security': matrixto_http_header_strict_transport_security} if matrixto_http_header_strict_transport_security and matrixto_container_labels_traefik_tls else {})
  88. }}
  89. matrixto_container_labels_traefik_additional_response_headers_custom: {}
  90. # matrixto_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  91. # See `../templates/labels.j2` for details.
  92. #
  93. # Example:
  94. # matrixto_container_labels_additional_labels: |
  95. # my.label=1
  96. # another.label="here"
  97. matrixto_container_labels_additional_labels: ""
  98. # A list of extra arguments to pass to the container (`docker run` command)
  99. matrixto_container_extra_arguments: []
  100. # Specifies the value of the `X-XSS-Protection` header
  101. # Stops pages from loading when they detect reflected cross-site scripting (XSS) attacks.
  102. #
  103. # Learn more about it is here:
  104. # - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection
  105. # - https://portswigger.net/web-security/cross-site-scripting/reflected
  106. matrixto_http_header_xss_protection: "1; mode=block"
  107. # Specifies the value of the `X-Content-Type-Options` header.
  108. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options
  109. matrixto_http_header_content_type_options: nosniff
  110. # Specifies the value of the `Content-Security-Policy` header.
  111. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
  112. matrixto_http_header_content_security_policy: frame-ancestors 'self'
  113. # Specifies the value of the `Permissions-Policy` header.
  114. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy
  115. matrixto_http_header_permissions_policy: "{{ 'interest-cohort=()' if matrixto_floc_optout_enabled else '' }}"
  116. # Specifies the value of the `Strict-Transport-Security` header.
  117. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
  118. matrixto_http_header_strict_transport_security: "max-age=31536000; includeSubDomains{{ '; preload' if matrixto_hsts_preload_enabled else '' }}"
  119. # Controls whether to send a "Permissions-Policy interest-cohort=();" header along with all responses
  120. #
  121. # Learn more about what it is here:
  122. # - https://www.eff.org/deeplinks/2021/03/googles-floc-terrible-idea
  123. # - https://paramdeo.com/blog/opting-your-website-out-of-googles-floc-network
  124. # - https://amifloced.org/
  125. #
  126. # Of course, a better solution is to just stop using browsers (like Chrome), which participate in such tracking practices.
  127. # See: `matrixto_http_header_permissions_policy`
  128. matrixto_floc_optout_enabled: true
  129. # Controls if HSTS preloading is enabled
  130. #
  131. # In its strongest and recommended form, the [HSTS policy](https://www.chromium.org/hsts) includes all subdomains, and
  132. # indicates a willingness to be "preloaded" into browsers:
  133. # `Strict-Transport-Security: max-age=31536000; includeSubDomains; preload`
  134. # For more information visit:
  135. # - https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security
  136. # - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
  137. # - https://hstspreload.org/#opt-in
  138. # See: `matrixto_http_header_strict_transport_security`
  139. matrixto_hsts_preload_enabled: false
  140. # List of systemd services that the Matrix.to systemd service depends on
  141. matrixto_systemd_required_services_list: "{{ matrixto_systemd_required_services_list_default + matrixto_systemd_required_services_list_auto + matrixto_systemd_required_services_list_custom }}"
  142. matrixto_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  143. matrixto_systemd_required_services_list_auto: []
  144. matrixto_systemd_required_services_list_custom: []
  145. # List of systemd services that the Matrix.to systemd service wants
  146. matrixto_systemd_wanted_services_list: "{{ matrixto_systemd_wanted_services_list_default + matrixto_systemd_wanted_services_list_auto + matrixto_systemd_wanted_services_list_custom }}"
  147. matrixto_systemd_wanted_services_list_default: []
  148. matrixto_systemd_wanted_services_list_auto: []
  149. matrixto_systemd_wanted_services_list_custom: []
  150. # Additional environment variables.
  151. matrixto_environment_variables_additional_variables: ""