Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Remove unnecessary proxy configurations

Andras Bacsai9ed30cb0dc7d
diff --git a/bootstrap/helpers/proxy.php b/bootstrap/helpers/proxy.php
index a52c859e4a..c8b626120f 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",