From 9ed30cb0dc7d2b58763a44a5c305256bc061b6f7 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 9 Jan 2024 13:13:55 +0100 Subject: [PATCH] Remove unnecessary proxy configurations --- bootstrap/helpers/proxy.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/bootstrap/helpers/proxy.php b/bootstrap/helpers/proxy.php index a52c859e4..c8b626120 100644 --- a/bootstrap/helpers/proxy.php +++ b/bootstrap/helpers/proxy.php @@ -106,22 +106,6 @@ function generate_default_proxy_configuration(Server $server) // Global Middlewares "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https", "traefik.http.middlewares.gzip.compress=true", - // https WWW to non-WWW - "traefik.http.middlewares.https-www-to-non-www.redirectregex.regex=^https?://www\\.(.+)", - "traefik.http.middlewares.https-www-to-non-www.redirectregex.replacement=https://\$1", - "traefik.http.middlewares.https-www-to-non-www.redirectregex.permanent=true", - // https Non-WWW to WWW - "traefik.http.middlewares.https-non-www-to-www.redirectregex.regex=^https?://(?:www\\.)?(.+)", - "traefik.http.middlewares.https-non-www-to-www.redirectregex.replacement=https://www.\$\${1}", - "traefik.http.middlewares.https-non-www-to-www.redirectregex.permanent=true", - // http www to non-WWW - "traefik.http.middlewares.http-www-to-non-www.redirectregex.regex=^http://www\\.(.+)", - "traefik.http.middlewares.http-www-to-non-www.redirectregex.replacement=http://\$1", - "traefik.http.middlewares.http-www-to-non-www.redirectregex.permanent=true", - // http Non-WWW to WWW - "traefik.http.middlewares.http-non-www-to-www.redirectregex.regex=^http://(?:www\\.)?(.+)", - "traefik.http.middlewares.http-non-www-to-www.redirectregex.replacement=http://www.\$\${1}", - "traefik.http.middlewares.http-non-www-to-www.redirectregex.permanent=true", ]; $config = [ "version" => "3.8",