From bf6f5d8ced1e7de0018d59fdceb9bc0c5cd10da3 Mon Sep 17 00:00:00 2001 From: liberodark Date: Sun, 31 May 2020 14:06:27 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 9c464eb..ed9845c 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -21,4 +21,9 @@ proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $http_connection; + + # Force usage of https + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } }