Don't host /.well-known/element/element.json
file when Element Call is enabled
Various old guides mention this, but it seems like neither Element Web, nor Element Desktop make use of it. Element Web & Element Desktop use their own `config.json` configuration to figure out where Element Call is.
This commit is contained in:
@ -56,47 +56,6 @@ traefik.http.routers.{{ matrix_static_files_identifier }}-well-known-matrix.tls.
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if matrix_static_files_container_labels_well_known_element_endpoint_enabled %}
|
||||
############################################################
|
||||
# #
|
||||
# Related to /.well-known/element on the Matrix domain #
|
||||
# #
|
||||
############################################################
|
||||
|
||||
{% set well_known_element_endpoint_middlewares = [] %}
|
||||
|
||||
{% if matrix_static_files_container_labels_well_known_element_endpoint_middleware_compress_enabled %}
|
||||
traefik.http.middlewares.{{ matrix_static_files_identifier }}-well-known-element-compress.compress=true
|
||||
traefik.http.middlewares.{{ matrix_static_files_identifier }}-well-known-element-compress.compress.minResponseBodyBytes={{ matrix_static_files_container_labels_well_known_element_endpoint_middleware_compress_minResponseBodyBytes }}
|
||||
{% set well_known_element_endpoint_middlewares = well_known_element_endpoint_middlewares + [matrix_static_files_identifier + '-well-known-element-compress'] %}
|
||||
{% endif %}
|
||||
|
||||
traefik.http.routers.{{ matrix_static_files_identifier }}-well-known-element.rule={{ matrix_static_files_container_labels_well_known_element_endpoint_traefik_rule }}
|
||||
|
||||
{% if well_known_element_endpoint_middlewares | length > 0 %}
|
||||
traefik.http.routers.{{ matrix_static_files_identifier }}-well-known-element.middlewares={{ well_known_element_endpoint_middlewares | join(',') }}
|
||||
{% endif %}
|
||||
|
||||
{% if matrix_static_files_container_labels_well_known_element_endpoint_traefik_priority | int > 0 %}
|
||||
traefik.http.routers.{{ matrix_static_files_identifier }}-well-known-element.priority={{ matrix_static_files_container_labels_well_known_element_endpoint_traefik_priority }}
|
||||
{% endif %}
|
||||
|
||||
traefik.http.routers.{{ matrix_static_files_identifier }}-well-known-element.service={{ matrix_static_files_identifier }}
|
||||
traefik.http.routers.{{ matrix_static_files_identifier }}-well-known-element.entrypoints={{ matrix_static_files_container_labels_well_known_element_endpoint_traefik_entrypoints }}
|
||||
traefik.http.routers.{{ matrix_static_files_identifier }}-well-known-element.tls={{ matrix_static_files_container_labels_well_known_element_endpoint_traefik_tls | to_json }}
|
||||
|
||||
{% if matrix_static_files_container_labels_well_known_element_endpoint_traefik_tls %}
|
||||
traefik.http.routers.{{ matrix_static_files_identifier }}-well-known-element.tls.certResolver={{ matrix_static_files_container_labels_well_known_element_endpoint_traefik_tls_certResolver }}
|
||||
{% endif %}
|
||||
|
||||
############################################################
|
||||
# #
|
||||
# /Related to /.well-known/element on the Matrix domain #
|
||||
# #
|
||||
############################################################
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if matrix_static_files_container_labels_base_domain_enabled %}
|
||||
############################################################
|
||||
# #
|
||||
|
Reference in New Issue
Block a user