From 97672fd18d0422ab052c95222e5fdf59d97f8f6c Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 5 Oct 2020 22:43:13 +0200 Subject: [PATCH] Force usage of https --- conf/nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index ab4eec6..1879457 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,4 +1,8 @@ location ^~ __PATH__/ { + # Force usage of https + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } proxy_pass http://127.0.0.1:__PORT__/; proxy_redirect off;