From e5031accbb960c112116de6b6915522054548911 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Peters?= Date: Fri, 9 Feb 2018 09:59:35 +0100 Subject: [PATCH] [Nginx] Remove auto-redirect to not break rp --- data/conf/nginx/site.conf | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/data/conf/nginx/site.conf b/data/conf/nginx/site.conf index 5e35cdcf..b84d3205 100644 --- a/data/conf/nginx/site.conf +++ b/data/conf/nginx/site.conf @@ -7,14 +7,6 @@ map $http_x_forwarded_proto $client_req_scheme { https https; } -geo $non_internal { - default 1; - 10.0.0.0/8 0; - 172.16.0.0/12 0; - 192.168.0.0/16 0; - fc00::/7 0; -} - server { include /etc/nginx/mime.types; charset utf-8; @@ -33,10 +25,6 @@ server { include /etc/nginx/conf.d/listen_plain.active; include /etc/nginx/conf.d/server_name.active; - if ($non_internal) { - return 302 https://$server_name$uri$is_args$args; - } - error_log /var/log/nginx/error.log; access_log /var/log/nginx/access.log; absolute_redirect off;