From 0dc8d5a83bdc9cd3b9286b4e4d18cc1c3e782704 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 2 Jul 2021 23:30:44 +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 83f64f7..20e0976 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,6 +1,11 @@ #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; 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_http_version 1.1; proxy_set_header Connection "upgrade";