Matrix Docker Ansible eploy
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

224 wiersze
13 KiB

  1. ---
  2. # Project source code URL: https://github.com/turt2live/matrix-dimension
  3. matrix_dimension_enabled: false
  4. matrix_dimension_scheme: https
  5. # The hostname at which Dimension is served.
  6. matrix_dimension_hostname: ''
  7. # The path at which Dimension is exposed.
  8. # This value must either be `/` or not end with a slash (e.g. `/dimension`).
  9. matrix_dimension_path_prefix: /
  10. # You are required to specify an access token for Dimension to work.
  11. # For information on how to acquire an access token, visit https://t2bot.io/docs/access_tokens
  12. matrix_dimension_access_token: ""
  13. # Users in form: ['@alice:example.com', '@bob:example.com']
  14. matrix_dimension_admins: []
  15. # Whether to allow Dimension widgets serve websites with invalid or self signed SSL certificates
  16. matrix_dimension_widgets_allow_self_signed_ssl_certificates: false
  17. matrix_dimension_container_image_self_build: false
  18. matrix_dimension_container_image_self_build_repo: "https://github.com/turt2live/matrix-dimension.git"
  19. matrix_dimension_container_image_self_build_branch: master
  20. matrix_dimension_base_path: "{{ matrix_base_data_path }}/dimension"
  21. matrix_dimension_docker_src_files_path: "{{ matrix_base_data_path }}/docker-src/dimension"
  22. # renovate: datasource=docker depName=turt2live/matrix-dimension
  23. matrix_dimension_version: latest
  24. matrix_dimension_docker_image: "{{ matrix_dimension_docker_image_registry_prefix }}turt2live/matrix-dimension:{{ matrix_dimension_version }}"
  25. matrix_dimension_docker_image_registry_prefix: "{{ 'localhost/' if matrix_dimension_container_image_self_build else matrix_dimension_docker_image_registry_prefix_upstream }}"
  26. matrix_dimension_docker_image_registry_prefix_upstream: "{{ matrix_dimension_docker_image_registry_prefix_upstream_default }}"
  27. matrix_dimension_docker_image_registry_prefix_upstream_default: docker.io/
  28. matrix_dimension_docker_image_force_pull: "{{ matrix_dimension_docker_image.endswith(':latest') }}"
  29. # List of systemd services that matrix-dimension.service depends on.
  30. matrix_dimension_systemd_required_services_list: "{{ matrix_dimension_systemd_required_services_list_default + matrix_dimension_systemd_required_services_list_auto + matrix_dimension_systemd_required_services_list_custom }}"
  31. matrix_dimension_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  32. matrix_dimension_systemd_required_services_list_auto: []
  33. matrix_dimension_systemd_required_services_list_custom: []
  34. # List of systemd services that matrix-dimension.service wants
  35. matrix_dimension_systemd_wanted_services_list: []
  36. # The user and group ID correspond to the node user in the `turt2live/matrix-dimension` image.
  37. matrix_dimension_user_uid: '1000'
  38. matrix_dimension_user_gid: '1000'
  39. # The base container network. It will be auto-created by this role if it doesn't exist already.
  40. matrix_dimension_container_network: matrix-dimension
  41. # A list of additional container networks that the container would be connected to.
  42. # The role does not create these networks, so make sure they already exist.
  43. # Use this to expose this container to another reverse proxy, which runs in a different container network.
  44. matrix_dimension_container_additional_networks: []
  45. # Controls whether the matrix-dimension container exposes its HTTP port (tcp/8184 in the container).
  46. #
  47. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8184"), or empty string to not expose.
  48. matrix_dimension_container_http_host_bind_port: ''
  49. # matrix_dimension_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  50. # See `../templates/labels.j2` for details.
  51. #
  52. # To inject your own other container labels, see `matrix_dimension_container_labels_additional_labels`.
  53. matrix_dimension_container_labels_traefik_enabled: true
  54. matrix_dimension_container_labels_traefik_docker_network: "{{ matrix_dimension_container_network }}"
  55. matrix_dimension_container_labels_traefik_hostname: "{{ matrix_dimension_hostname }}"
  56. # The path prefix must either be `/` or not end with a slash (e.g. `/dimension`).
  57. matrix_dimension_container_labels_traefik_path_prefix: "{{ matrix_dimension_path_prefix }}"
  58. matrix_dimension_container_labels_traefik_rule: "Host(`{{ matrix_dimension_container_labels_traefik_hostname }}`){% if matrix_dimension_container_labels_traefik_path_prefix != '/' %} && PathPrefix(`{{ matrix_dimension_container_labels_traefik_path_prefix }}`){% endif %}"
  59. matrix_dimension_container_labels_traefik_priority: 0
  60. matrix_dimension_container_labels_traefik_entrypoints: web-secure
  61. matrix_dimension_container_labels_traefik_tls: "{{ matrix_dimension_container_labels_traefik_entrypoints != 'web' }}"
  62. matrix_dimension_container_labels_traefik_tls_certResolver: default # noqa var-naming
  63. # Controls which additional headers to attach to all HTTP responses.
  64. # To add your own headers, use `matrix_dimension_container_labels_traefik_additional_response_headers_custom`
  65. matrix_dimension_container_labels_traefik_additional_response_headers: "{{ matrix_dimension_container_labels_traefik_additional_response_headers_auto | combine(matrix_dimension_container_labels_traefik_additional_response_headers_custom) }}"
  66. matrix_dimension_container_labels_traefik_additional_response_headers_auto: |
  67. {{
  68. {}
  69. | combine ({'X-XSS-Protection': matrix_dimension_http_header_xss_protection} if matrix_dimension_http_header_xss_protection else {})
  70. | combine ({'X-Frame-Options': matrix_dimension_http_header_frame_options} if matrix_dimension_http_header_frame_options else {})
  71. | combine ({'X-Content-Type-Options': matrix_dimension_http_header_content_type_options} if matrix_dimension_http_header_content_type_options else {})
  72. | combine ({'Content-Security-Policy': matrix_dimension_http_header_content_security_policy} if matrix_dimension_http_header_content_security_policy else {})
  73. | combine ({'Permission-Policy': matrix_dimension_http_header_content_permission_policy} if matrix_dimension_http_header_content_permission_policy else {})
  74. | combine ({'Strict-Transport-Security': matrix_dimension_http_header_strict_transport_security} if matrix_dimension_http_header_strict_transport_security and matrix_dimension_container_labels_traefik_tls else {})
  75. }}
  76. matrix_dimension_container_labels_traefik_additional_response_headers_custom: {}
  77. # matrix_dimension_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  78. # See `../templates/labels.j2` for details.
  79. #
  80. # Example:
  81. # matrix_dimension_container_labels_additional_labels: |
  82. # my.label=1
  83. # another.label="here"
  84. matrix_dimension_container_labels_additional_labels: ''
  85. # A list of extra arguments to pass to the container
  86. matrix_dimension_container_extra_arguments: []
  87. # Public facing base URL of the Dimension service.
  88. # It should not end with a slash.
  89. matrix_dimension_base_url: "{{ matrix_dimension_scheme }}://{{ matrix_dimension_hostname }}{{ '' if matrix_dimension_path_prefix == '/' else matrix_dimension_path_prefix }}"
  90. matrix_dimension_integrations_ui_url: "{{ matrix_dimension_base_url }}/element"
  91. matrix_dimension_integrations_rest_url: "{{ matrix_dimension_base_url }}/api/v1/scalar"
  92. matrix_dimension_integrations_widgets_urls: ["{{ matrix_dimension_base_url }}/widgets"]
  93. matrix_dimension_integrations_jitsi_widget_url: "{{ matrix_dimension_base_url }}/widgets/jitsi"
  94. matrix_dimension_homeserver_clientServerUrl: '' # noqa var-naming
  95. matrix_dimension_homeserver_federationUrl: '' # noqa var-naming
  96. matrix_dimension_homeserver_mediaUrl: '' # noqa var-naming
  97. # Controls the dimension.publicUrl configuration option
  98. matrix_dimension_dimension_publicUrl: "{{ matrix_dimension_base_url }}" # noqa var-naming
  99. # Specifies the value of the `X-XSS-Protection` header
  100. # Stops pages from loading when they detect reflected cross-site scripting (XSS) attacks.
  101. #
  102. # Learn more about it is here:
  103. # - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection
  104. # - https://portswigger.net/web-security/cross-site-scripting/reflected
  105. matrix_dimension_http_header_xss_protection: "1; mode=block"
  106. # Specifies the value of the `X-Frame-Options` header which controls whether framing can happen.
  107. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
  108. matrix_dimension_http_header_frame_options: ''
  109. # Specifies the value of the `X-Content-Type-Options` header.
  110. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options
  111. matrix_dimension_http_header_content_type_options: nosniff
  112. # Specifies the value of the `Content-Security-Policy` header.
  113. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
  114. matrix_dimension_http_header_content_security_policy: ''
  115. # Specifies the value of the `Permission-Policy` header.
  116. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permission-Policy
  117. matrix_dimension_http_header_content_permission_policy: "{{ 'interest-cohort=()' if matrix_dimension_floc_optout_enabled else '' }}"
  118. # Specifies the value of the `Strict-Transport-Security` header.
  119. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
  120. matrix_dimension_http_header_strict_transport_security: "max-age=31536000; includeSubDomains{{ '; preload' if matrix_dimension_hsts_preload_enabled else '' }}"
  121. # Controls whether to send a "Permissions-Policy interest-cohort=();" header along with all responses
  122. #
  123. # Learn more about what it is here:
  124. # - https://www.eff.org/deeplinks/2021/03/googles-floc-terrible-idea
  125. # - https://paramdeo.com/blog/opting-your-website-out-of-googles-floc-network
  126. # - https://amifloced.org/
  127. #
  128. # Of course, a better solution is to just stop using browsers (like Chrome), which participate in such tracking practices.
  129. # See: `matrix_dimension_content_permission_policy`
  130. matrix_dimension_floc_optout_enabled: true
  131. # Controls if HSTS preloading is enabled
  132. #
  133. # In its strongest and recommended form, the [HSTS policy](https://www.chromium.org/hsts) includes all subdomains, and
  134. # indicates a willingness to be "preloaded" into browsers:
  135. # `Strict-Transport-Security: max-age=31536000; includeSubDomains; preload`
  136. # For more information visit:
  137. # - https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security
  138. # - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
  139. # - https://hstspreload.org/#opt-in
  140. # See: `matrix_dimension_http_header_strict_transport_security`
  141. matrix_dimension_hsts_preload_enabled: false
  142. # Database-related configuration fields.
  143. #
  144. # To use SQLite, stick to these defaults.
  145. #
  146. # To use Postgres:
  147. # - change the engine (`matrix_dimension_database_engine: 'postgres'`)
  148. # - adjust your database credentials via the `matrix_dimension_database_*` variables
  149. matrix_dimension_database_engine: 'sqlite'
  150. matrix_dimension_sqlite_database_path_local: "{{ matrix_dimension_base_path }}/dimension.db"
  151. matrix_dimension_sqlite_database_path_in_container: "dimension.db"
  152. matrix_dimension_database_username: 'matrix_dimension'
  153. matrix_dimension_database_password: 'some-password'
  154. matrix_dimension_database_hostname: ''
  155. matrix_dimension_database_port: 5432
  156. matrix_dimension_database_name: 'matrix_dimension'
  157. matrix_dimension_database_connection_string: 'postgres://{{ matrix_dimension_database_username }}:{{ matrix_dimension_database_password }}@{{ matrix_dimension_database_hostname }}:{{ matrix_dimension_database_port }}/{{ matrix_dimension_database_name }}'
  158. # Default Dimension configuration template which covers the generic use case.
  159. # You can customize it by controlling the various variables inside it.
  160. #
  161. # For a more advanced customization, you can extend the default (see `matrix_dimension_configuration_extension_yaml`)
  162. # or completely replace this variable with your own template.
  163. matrix_dimension_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  164. matrix_dimension_configuration_extension_yaml: |
  165. # Your custom YAML configuration for Dimension goes here.
  166. # This configuration extends the default starting configuration (`matrix_dimension_configuration_yaml`).
  167. #
  168. # You can override individual variables from the default configuration, or introduce new ones.
  169. #
  170. # If you need something more special, you can take full control by
  171. # completely redefining `matrix_dimension_configuration_yaml`.
  172. #
  173. # Example configuration extension follows:
  174. # telegram:
  175. # botToken: "YourTokenHere"
  176. #
  177. matrix_dimension_configuration_extension: "{{ matrix_dimension_configuration_extension_yaml | from_yaml if matrix_dimension_configuration_extension_yaml | from_yaml is mapping else {} }}"
  178. # Holds the final Dimension configuration (a combination of the default and its extension).
  179. # You most likely don't need to touch this variable. Instead, see `matrix_dimension_configuration_yaml`.
  180. matrix_dimension_configuration: "{{ matrix_dimension_configuration_yaml | from_yaml | combine(matrix_dimension_configuration_extension, recursive=True) }}"