From ce9a8d3a2c00cd3307fa07516ca024c34423141d Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Sun, 11 Feb 2024 09:07:32 +0200 Subject: [PATCH] Rename base domain root path redirect middleware to improve consistency --- roles/custom/matrix-static-files/templates/labels.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/custom/matrix-static-files/templates/labels.j2 b/roles/custom/matrix-static-files/templates/labels.j2 index dd3cad544..e9fcf1945 100644 --- a/roles/custom/matrix-static-files/templates/labels.j2 +++ b/roles/custom/matrix-static-files/templates/labels.j2 @@ -59,9 +59,9 @@ traefik.http.routers.{{ matrix_static_files_identifier }}-well-known.tls.certRes {% set middlewares = [] %} {% if matrix_static_files_container_labels_base_domain_root_path_redirection_enabled %} -traefik.http.middlewares.{{ matrix_static_files_identifier }}-root-path-redirect.redirectregex.regex={{ matrix_static_files_container_labels_base_domain_root_path_redirection_regex }} -traefik.http.middlewares.{{ matrix_static_files_identifier }}-root-path-redirect.redirectregex.replacement={{ matrix_static_files_container_labels_base_domain_root_path_redirection_url }} -{% set middlewares = middlewares + [matrix_static_files_identifier + '-root-path-redirect'] %} +traefik.http.middlewares.{{ matrix_static_files_identifier }}-base-domain-root-path-redirect.redirectregex.regex={{ matrix_static_files_container_labels_base_domain_root_path_redirection_regex }} +traefik.http.middlewares.{{ matrix_static_files_identifier }}-base-domain-root-path-redirect.redirectregex.replacement={{ matrix_static_files_container_labels_base_domain_root_path_redirection_url }} +{% set middlewares = middlewares + [matrix_static_files_identifier + '-base-domain-root-path-redirect'] %} {% endif %} traefik.http.routers.{{ matrix_static_files_identifier }}-base-domain.rule={{ matrix_static_files_container_labels_base_domain_traefik_rule }}