Matrix Docker Ansible eploy
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

138 Zeilen
8.5 KiB

  1. ---
  2. # matrix-synapse-admin is a web UI for mananging the Synapse Matrix server
  3. # Project source code URL: https://github.com/Awesome-Technologies/synapse-admin
  4. matrix_synapse_admin_enabled: true
  5. # A path on host where all related files will be saved
  6. matrix_synapse_admin_base_path: "{{ matrix_base_data_path }}/synapse-admin"
  7. matrix_synapse_admin_docker_src_files_path: "{{ matrix_synapse_admin_base_path }}/docker-src"
  8. matrix_synapse_admin_container_image_self_build: false
  9. matrix_synapse_admin_container_image_self_build_repo: "https://github.com/Awesome-Technologies/synapse-admin.git"
  10. # renovate: datasource=docker depName=awesometechnologies/synapse-admin
  11. matrix_synapse_admin_version: 0.8.7
  12. matrix_synapse_admin_docker_image: "{{ matrix_synapse_admin_docker_image_name_prefix }}awesometechnologies/synapse-admin:{{ matrix_synapse_admin_version }}"
  13. matrix_synapse_admin_docker_image_name_prefix: "{{ 'localhost/' if matrix_synapse_admin_container_image_self_build else matrix_container_global_registry_prefix }}"
  14. matrix_synapse_admin_docker_image_force_pull: "{{ matrix_synapse_admin_docker_image.endswith(':latest') }}"
  15. # The base container network
  16. matrix_synapse_admin_container_network: matrix-synapse-admin
  17. # A list of additional container networks that the container would be connected to.
  18. # The role does not create these networks, so make sure they already exist.
  19. # Use this to expose this container to a reverse proxy, which runs in a different container network.
  20. matrix_synapse_admin_container_additional_networks: []
  21. # Controls whether the matrix-synapse-admin container exposes its HTTP port (tcp/80 in the container).
  22. #
  23. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8766"), or empty string to not expose.
  24. matrix_synapse_admin_container_http_host_bind_port: ''
  25. # A list of extra arguments to pass to the container
  26. matrix_synapse_admin_container_extra_arguments: []
  27. # matrix_synapse_admin_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  28. # See `../templates/labels.j2` for details.
  29. #
  30. # To inject your own other container labels, see `matrix_synapse_admin_container_labels_additional_labels`.
  31. matrix_synapse_admin_container_labels_traefik_enabled: true
  32. matrix_synapse_admin_container_labels_traefik_docker_network: "{{ matrix_synapse_admin_container_network }}"
  33. matrix_synapse_admin_container_labels_traefik_hostname: "{{ matrix_synapse_admin_hostname }}"
  34. # The path prefix must either be `/` or not end with a slash (e.g. `/synapse-admin`).
  35. matrix_synapse_admin_container_labels_traefik_path_prefix: "{{ matrix_synapse_admin_path_prefix }}"
  36. matrix_synapse_admin_container_labels_traefik_rule: "Host(`{{ matrix_synapse_admin_container_labels_traefik_hostname }}`){% if matrix_synapse_admin_container_labels_traefik_path_prefix != '/' %} && PathPrefix(`{{ matrix_synapse_admin_container_labels_traefik_path_prefix | quote }}`){% endif %}"
  37. matrix_synapse_admin_container_labels_traefik_priority: 0
  38. matrix_synapse_admin_container_labels_traefik_entrypoints: web-secure
  39. matrix_synapse_admin_container_labels_traefik_tls: "{{ matrix_synapse_admin_container_labels_traefik_entrypoints != 'web' }}"
  40. matrix_synapse_admin_container_labels_traefik_tls_certResolver: default # noqa var-naming
  41. # Controls which additional headers to attach to all HTTP responses.
  42. # To add your own headers, use `matrix_synapse_admin_container_labels_traefik_additional_response_headers_custom`
  43. matrix_synapse_admin_container_labels_traefik_additional_response_headers: "{{ matrix_synapse_admin_container_labels_traefik_additional_response_headers_auto | combine(matrix_synapse_admin_container_labels_traefik_additional_response_headers_custom) }}"
  44. matrix_synapse_admin_container_labels_traefik_additional_response_headers_auto: |
  45. {{
  46. {}
  47. | combine ({'X-XSS-Protection': matrix_synapse_admin_http_header_xss_protection} if matrix_synapse_admin_http_header_xss_protection else {})
  48. | combine ({'X-Frame-Options': matrix_synapse_admin_http_header_frame_options} if matrix_synapse_admin_http_header_frame_options else {})
  49. | combine ({'X-Content-Type-Options': matrix_synapse_admin_http_header_content_type_options} if matrix_synapse_admin_http_header_content_type_options else {})
  50. | combine ({'Content-Security-Policy': matrix_synapse_admin_http_header_content_security_policy} if matrix_synapse_admin_http_header_content_security_policy else {})
  51. | combine ({'Permission-Policy': matrix_synapse_admin_http_header_content_permission_policy} if matrix_synapse_admin_http_header_content_permission_policy else {})
  52. | combine ({'Strict-Transport-Security': matrix_synapse_admin_http_header_strict_transport_security} if matrix_synapse_admin_http_header_strict_transport_security and matrix_synapse_admin_container_labels_traefik_tls else {})
  53. }}
  54. matrix_synapse_admin_container_labels_traefik_additional_response_headers_custom: {}
  55. # matrix_synapse_admin_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  56. # See `../templates/labels.j2` for details.
  57. #
  58. # Example:
  59. # matrix_synapse_admin_container_labels_additional_labels: |
  60. # my.label=1
  61. # another.label="here"
  62. matrix_synapse_admin_container_labels_additional_labels: ''
  63. # List of systemd services that matrix-synapse-admin.service depends on
  64. matrix_synapse_admin_systemd_required_services_list: ['docker.service']
  65. # List of systemd services that matrix-synapse-admin.service wants
  66. matrix_synapse_admin_systemd_wanted_services_list: []
  67. # Specifies the value of the `X-XSS-Protection` header
  68. # Stops pages from loading when they detect reflected cross-site scripting (XSS) attacks.
  69. #
  70. # Learn more about it is here:
  71. # - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection
  72. # - https://portswigger.net/web-security/cross-site-scripting/reflected
  73. matrix_synapse_admin_http_header_xss_protection: "1; mode=block"
  74. # Specifies the value of the `X-Frame-Options` header which controls whether framing can happen.
  75. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
  76. matrix_synapse_admin_http_header_frame_options: SAMEORIGIN
  77. # Specifies the value of the `X-Content-Type-Options` header.
  78. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options
  79. matrix_synapse_admin_http_header_content_type_options: nosniff
  80. # Specifies the value of the `Content-Security-Policy` header.
  81. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
  82. matrix_synapse_admin_http_header_content_security_policy: frame-ancestors 'self'
  83. # Specifies the value of the `Permission-Policy` header.
  84. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permission-Policy
  85. matrix_synapse_admin_http_header_content_permission_policy: "{{ 'interest-cohort=()' if matrix_synapse_admin_floc_optout_enabled else '' }}"
  86. # Specifies the value of the `Strict-Transport-Security` header.
  87. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
  88. matrix_synapse_admin_http_header_strict_transport_security: "max-age=31536000; includeSubDomains{{ '; preload' if matrix_synapse_admin_hsts_preload_enabled else '' }}"
  89. # Controls whether to send a "Permissions-Policy interest-cohort=();" header along with all responses
  90. #
  91. # Learn more about what it is here:
  92. # - https://www.eff.org/deeplinks/2021/03/googles-floc-terrible-idea
  93. # - https://paramdeo.com/blog/opting-your-website-out-of-googles-floc-network
  94. # - https://amifloced.org/
  95. #
  96. # Of course, a better solution is to just stop using browsers (like Chrome), which participate in such tracking practices.
  97. # See: `matrix_synapse_admin_content_permission_policy`
  98. matrix_synapse_admin_floc_optout_enabled: true
  99. # Controls if HSTS preloading is enabled
  100. #
  101. # In its strongest and recommended form, the [HSTS policy](https://www.chromium.org/hsts) includes all subdomains, and
  102. # indicates a willingness to be "preloaded" into browsers:
  103. # `Strict-Transport-Security: max-age=31536000; includeSubDomains; preload`
  104. # For more information visit:
  105. # - https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security
  106. # - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
  107. # - https://hstspreload.org/#opt-in
  108. # See: `matrix_synapse_admin_http_header_strict_transport_security`
  109. matrix_synapse_admin_hsts_preload_enabled: false
  110. # The hostname at which Synapse Admin is served.
  111. matrix_synapse_admin_hostname: "{{ matrix_server_fqn_matrix }}"
  112. # The path at which Synapse Admin is exposed.
  113. # This value must either be `/` or not end with a slash (e.g. `/synapse-admin`).
  114. matrix_synapse_admin_path_prefix: /synapse-admin