2024-01-03 11:05:59 +00:00
|
|
|
{% if matrix_static_files_container_labels_traefik_enabled %}
|
|
|
|
traefik.enable=true
|
|
|
|
|
|
|
|
{% if matrix_static_files_container_labels_traefik_docker_network %}
|
|
|
|
traefik.docker.network={{ matrix_static_files_container_labels_traefik_docker_network }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
traefik.http.services.{{ matrix_static_files_ident }}.loadbalancer.server.port={{ matrix_static_files_environment_variable_server_port }}
|
|
|
|
|
|
|
|
|
|
|
|
{#
|
2024-01-03 12:39:17 +00:00
|
|
|
Related to /.well-known/matrix on the matrix domain
|
2024-01-03 11:05:59 +00:00
|
|
|
#}
|
|
|
|
{% if matrix_static_files_container_labels_well_known_matrix_endpoint_enabled %}
|
|
|
|
|
2024-01-03 14:18:39 +00:00
|
|
|
{% set well_known_matrix_endpoint_middlewares = [] %}
|
|
|
|
|
|
|
|
{% if matrix_static_files_container_labels_well_known_matrix_endpoint_middleware_compress_enabled %}
|
2024-01-03 11:05:59 +00:00
|
|
|
traefik.http.middlewares.{{ matrix_static_files_ident }}-well-known-endpoint-compress.compress=true
|
2024-01-03 14:18:39 +00:00
|
|
|
traefik.http.middlewares.{{ matrix_static_files_ident }}-well-known-endpoint-compress.compress.minResponseBodyBytes={{ matrix_static_files_container_labels_well_known_matrix_endpoint_middleware_compress_minResponseBodyBytes }}
|
|
|
|
{% set well_known_matrix_endpoint_middlewares = well_known_matrix_endpoint_middlewares + [matrix_static_files_ident + '-well-known-endpoint-compress'] %}
|
|
|
|
{% endif %}
|
2024-01-03 11:05:59 +00:00
|
|
|
|
|
|
|
traefik.http.routers.{{ matrix_static_files_ident }}-well-known-endpoint.rule={{ matrix_static_files_container_labels_well_known_matrix_endpoint_traefik_rule }}
|
2024-01-03 14:18:39 +00:00
|
|
|
|
|
|
|
{% if well_known_matrix_endpoint_middlewares | length > 0 %}
|
|
|
|
traefik.http.routers.{{ matrix_static_files_ident }}-well-known-endpoint.middlewares={{ well_known_matrix_endpoint_middlewares | join(',') }}
|
|
|
|
{% endif %}
|
2024-01-03 11:05:59 +00:00
|
|
|
|
|
|
|
{% if matrix_static_files_container_labels_well_known_matrix_endpoint_traefik_priority | int > 0 %}
|
|
|
|
traefik.http.routers.{{ matrix_static_files_ident }}-well-known-endpoint.priority={{ matrix_static_files_container_labels_well_known_matrix_endpoint_traefik_priority }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
traefik.http.routers.{{ matrix_static_files_ident }}-well-known-endpoint.service={{ matrix_static_files_ident }}
|
|
|
|
traefik.http.routers.{{ matrix_static_files_ident }}-well-known-endpoint.entrypoints={{ matrix_static_files_container_labels_well_known_matrix_endpoint_traefik_entrypoints }}
|
|
|
|
traefik.http.routers.{{ matrix_static_files_ident }}-well-known-endpoint.tls={{ matrix_static_files_container_labels_well_known_matrix_endpoint_traefik_tls | to_json }}
|
|
|
|
|
|
|
|
{% if matrix_static_files_container_labels_well_known_matrix_endpoint_traefik_tls %}
|
|
|
|
traefik.http.routers.{{ matrix_static_files_ident }}-well-known-endpoint.tls.certResolver={{ matrix_static_files_container_labels_well_known_matrix_endpoint_traefik_tls_certResolver }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{#
|
2024-01-03 12:39:17 +00:00
|
|
|
/Related to /.well-known/matrix on the matrix domain
|
2024-01-03 11:05:59 +00:00
|
|
|
#}
|
|
|
|
|
|
|
|
|
2024-01-03 12:39:17 +00:00
|
|
|
{#
|
|
|
|
Base domain serving
|
|
|
|
#}
|
|
|
|
{% if matrix_static_files_container_labels_base_domain_enabled %}
|
|
|
|
traefik.http.routers.{{ matrix_static_files_ident }}-base-domain.rule={{ matrix_static_files_container_labels_base_domain_traefik_rule }}
|
|
|
|
|
|
|
|
{% if matrix_static_files_container_labels_base_domain_traefik_priority | int > 0 %}
|
|
|
|
traefik.http.routers.{{ matrix_static_files_ident }}-base-domain.priority={{ matrix_static_files_container_labels_base_domain_traefik_priority }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
traefik.http.routers.{{ matrix_static_files_ident }}-base-domain.service={{ matrix_static_files_ident }}
|
|
|
|
traefik.http.routers.{{ matrix_static_files_ident }}-base-domain.entrypoints={{ matrix_static_files_container_labels_base_domain_traefik_entrypoints }}
|
|
|
|
traefik.http.routers.{{ matrix_static_files_ident }}-base-domain.tls={{ matrix_static_files_container_labels_base_domain_traefik_tls | to_json }}
|
|
|
|
|
|
|
|
{% if matrix_static_files_container_labels_base_domain_traefik_tls %}
|
|
|
|
traefik.http.routers.{{ matrix_static_files_ident }}-base-domain.tls.certResolver={{ matrix_static_files_container_labels_base_domain_traefik_tls_certResolver }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{#
|
|
|
|
/Base domain serving
|
|
|
|
#}
|
|
|
|
|
2024-01-03 11:05:59 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{{ matrix_static_files_container_labels_additional_labels }}
|