From 87b58100e352cc096e500b2ba03a66264dd6f073 Mon Sep 17 00:00:00 2001 From: frju365 Date: Wed, 22 Aug 2018 10:29:02 +0200 Subject: [PATCH] =?UTF-8?q?[fix]=C2=A0https=20redirection?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 9bbef79..dde2979 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,4 +1,9 @@ location / { + + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } + proxy_pass http://localhost:__PORT__/; add_header X-Frame-Options SAMEORIGIN; proxy_set_header Host $host;