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";