diff --git a/conf/nginx.conf b/conf/nginx.conf index df211bc..6a81928 100755 --- 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 https://127.0.0.1:__PORT__; proxy_redirect off; proxy_set_header Host $host;