diff --git a/conf/nginx.conf b/conf/nginx.conf index 9bbef79..dde2979 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,4 +1,9 @@ location / { + + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } + proxy_pass http://localhost:__PORT__/; add_header X-Frame-Options SAMEORIGIN; proxy_set_header Host $host;