Matrix Docker Ansible eploy
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

176 lines
11 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_config_path: "{{ matrix_synapse_admin_base_path }}/config"
  8. matrix_synapse_admin_docker_src_files_path: "{{ matrix_synapse_admin_base_path }}/docker-src"
  9. matrix_synapse_admin_container_image_self_build: false
  10. matrix_synapse_admin_container_image_self_build_repo: "https://github.com/Awesome-Technologies/synapse-admin.git"
  11. # renovate: datasource=docker depName=awesometechnologies/synapse-admin
  12. matrix_synapse_admin_version: 0.10.1
  13. matrix_synapse_admin_docker_image: "{{ matrix_synapse_admin_docker_image_name_prefix }}awesometechnologies/synapse-admin:{{ matrix_synapse_admin_version }}"
  14. matrix_synapse_admin_docker_image_name_prefix: "{{ 'localhost/' if matrix_synapse_admin_container_image_self_build else matrix_container_global_registry_prefix }}"
  15. matrix_synapse_admin_docker_image_force_pull: "{{ matrix_synapse_admin_docker_image.endswith(':latest') }}"
  16. # The base container network
  17. matrix_synapse_admin_container_network: matrix-synapse-admin
  18. # A list of additional container networks that the container would be connected to.
  19. # The role does not create these networks, so make sure they already exist.
  20. # Use this to expose this container to a reverse proxy, which runs in a different container network.
  21. matrix_synapse_admin_container_additional_networks: []
  22. # Controls whether the matrix-synapse-admin container exposes its HTTP port (tcp/80 in the container).
  23. #
  24. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8766"), or empty string to not expose.
  25. matrix_synapse_admin_container_http_host_bind_port: ''
  26. # A list of extra arguments to pass to the container
  27. matrix_synapse_admin_container_extra_arguments: []
  28. # matrix_synapse_admin_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  29. # See `../templates/labels.j2` for details.
  30. #
  31. # To inject your own other container labels, see `matrix_synapse_admin_container_labels_additional_labels`.
  32. matrix_synapse_admin_container_labels_traefik_enabled: true
  33. matrix_synapse_admin_container_labels_traefik_docker_network: "{{ matrix_synapse_admin_container_network }}"
  34. matrix_synapse_admin_container_labels_traefik_hostname: "{{ matrix_synapse_admin_hostname }}"
  35. # The path prefix must either be `/` or not end with a slash (e.g. `/synapse-admin`).
  36. matrix_synapse_admin_container_labels_traefik_path_prefix: "{{ matrix_synapse_admin_path_prefix }}"
  37. 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 %}"
  38. matrix_synapse_admin_container_labels_traefik_priority: 0
  39. matrix_synapse_admin_container_labels_traefik_entrypoints: web-secure
  40. matrix_synapse_admin_container_labels_traefik_tls: "{{ matrix_synapse_admin_container_labels_traefik_entrypoints != 'web' }}"
  41. matrix_synapse_admin_container_labels_traefik_tls_certResolver: default # noqa var-naming
  42. # Controls which additional headers to attach to all HTTP responses.
  43. # To add your own headers, use `matrix_synapse_admin_container_labels_traefik_additional_response_headers_custom`
  44. 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) }}"
  45. matrix_synapse_admin_container_labels_traefik_additional_response_headers_auto: |
  46. {{
  47. {}
  48. | combine ({'X-XSS-Protection': matrix_synapse_admin_http_header_xss_protection} if matrix_synapse_admin_http_header_xss_protection else {})
  49. | combine ({'X-Frame-Options': matrix_synapse_admin_http_header_frame_options} if matrix_synapse_admin_http_header_frame_options else {})
  50. | combine ({'X-Content-Type-Options': matrix_synapse_admin_http_header_content_type_options} if matrix_synapse_admin_http_header_content_type_options else {})
  51. | combine ({'Content-Security-Policy': matrix_synapse_admin_http_header_content_security_policy} if matrix_synapse_admin_http_header_content_security_policy else {})
  52. | combine ({'Permission-Policy': matrix_synapse_admin_http_header_content_permission_policy} if matrix_synapse_admin_http_header_content_permission_policy else {})
  53. | 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 {})
  54. }}
  55. matrix_synapse_admin_container_labels_traefik_additional_response_headers_custom: {}
  56. # matrix_synapse_admin_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  57. # See `../templates/labels.j2` for details.
  58. #
  59. # Example:
  60. # matrix_synapse_admin_container_labels_additional_labels: |
  61. # my.label=1
  62. # another.label="here"
  63. matrix_synapse_admin_container_labels_additional_labels: ''
  64. # List of systemd services that matrix-synapse-admin.service depends on
  65. matrix_synapse_admin_systemd_required_services_list: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  66. # List of systemd services that matrix-synapse-admin.service wants
  67. matrix_synapse_admin_systemd_wanted_services_list: []
  68. # Specifies the value of the `X-XSS-Protection` header
  69. # Stops pages from loading when they detect reflected cross-site scripting (XSS) attacks.
  70. #
  71. # Learn more about it is here:
  72. # - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection
  73. # - https://portswigger.net/web-security/cross-site-scripting/reflected
  74. matrix_synapse_admin_http_header_xss_protection: "1; mode=block"
  75. # Specifies the value of the `X-Frame-Options` header which controls whether framing can happen.
  76. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
  77. matrix_synapse_admin_http_header_frame_options: SAMEORIGIN
  78. # Specifies the value of the `X-Content-Type-Options` header.
  79. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options
  80. matrix_synapse_admin_http_header_content_type_options: nosniff
  81. # Specifies the value of the `Content-Security-Policy` header.
  82. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
  83. matrix_synapse_admin_http_header_content_security_policy: frame-ancestors 'self'
  84. # Specifies the value of the `Permission-Policy` header.
  85. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permission-Policy
  86. matrix_synapse_admin_http_header_content_permission_policy: "{{ 'interest-cohort=()' if matrix_synapse_admin_floc_optout_enabled else '' }}"
  87. # Specifies the value of the `Strict-Transport-Security` header.
  88. # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
  89. matrix_synapse_admin_http_header_strict_transport_security: "max-age=31536000; includeSubDomains{{ '; preload' if matrix_synapse_admin_hsts_preload_enabled else '' }}"
  90. # Controls whether to send a "Permissions-Policy interest-cohort=();" header along with all responses
  91. #
  92. # Learn more about what it is here:
  93. # - https://www.eff.org/deeplinks/2021/03/googles-floc-terrible-idea
  94. # - https://paramdeo.com/blog/opting-your-website-out-of-googles-floc-network
  95. # - https://amifloced.org/
  96. #
  97. # Of course, a better solution is to just stop using browsers (like Chrome), which participate in such tracking practices.
  98. # See: `matrix_synapse_admin_content_permission_policy`
  99. matrix_synapse_admin_floc_optout_enabled: true
  100. # Controls if HSTS preloading is enabled
  101. #
  102. # In its strongest and recommended form, the [HSTS policy](https://www.chromium.org/hsts) includes all subdomains, and
  103. # indicates a willingness to be "preloaded" into browsers:
  104. # `Strict-Transport-Security: max-age=31536000; includeSubDomains; preload`
  105. # For more information visit:
  106. # - https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security
  107. # - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
  108. # - https://hstspreload.org/#opt-in
  109. # See: `matrix_synapse_admin_http_header_strict_transport_security`
  110. matrix_synapse_admin_hsts_preload_enabled: false
  111. # The hostname at which Synapse Admin is served.
  112. matrix_synapse_admin_hostname: "{{ matrix_server_fqn_matrix }}"
  113. # The path at which Synapse Admin is exposed.
  114. # This value must either be `/` or not end with a slash (e.g. `/synapse-admin`).
  115. matrix_synapse_admin_path_prefix: /synapse-admin
  116. # Default synapse-admin configuration template which covers the generic use case.
  117. # You can customize it by controlling the various variables inside it.
  118. #
  119. # For a more advanced customization, you can extend the default (see `matrix_synapse_admin_configuration_extension_json`)
  120. # or completely replace this variable with your own template.
  121. #
  122. # The side-effect of this lookup is that Ansible would even parse the JSON for us, returning a dict.
  123. # This is unlike what it does when looking up YAML template files (no automatic parsing there).
  124. matrix_synapse_admin_configuration_default: "{{ lookup('template', 'templates/config.json.j2') }}"
  125. # Your custom JSON configuration for synapse-admin should go to `matrix_synapse_admin_configuration_extension_json`.
  126. # This configuration extends the default starting configuration (`matrix_synapse_admin_configuration_default`).
  127. #
  128. # You can override individual variables from the default configuration, or introduce new ones.
  129. #
  130. # If you need something more special, you can take full control by
  131. # completely redefining `matrix_synapse_admin_configuration_default`.
  132. #
  133. # Example configuration extension follows:
  134. #
  135. # matrix_synapse_admin_configuration_extension_json: |
  136. # {
  137. # "some_setting": true,
  138. # "another_setting": false
  139. # }
  140. matrix_synapse_admin_configuration_extension_json: '{}'
  141. matrix_synapse_admin_configuration_extension: "{{ matrix_synapse_admin_configuration_extension_json | from_json if matrix_synapse_admin_configuration_extension_json | from_json is mapping else {} }}"
  142. # Holds the final synapse-admin configuration (a combination of the default and its extension).
  143. # You most likely don't need to touch this variable. Instead, see `matrix_synapse_admin_configuration_default`.
  144. matrix_synapse_admin_configuration: "{{ matrix_synapse_admin_configuration_default | combine(matrix_synapse_admin_configuration_extension, recursive=True) }}"
  145. # Controls the restrictBaseUrl configuration setting, which, if defined,
  146. # restricts the homeserver(s), so that the user can no longer define a homeserver manually during login.
  147. matrix_synapse_admin_config_restrictBaseUrl: "{{ [matrix_homeserver_url] }}" # noqa var-naming