diff --git a/nginx/default.conf b/nginx/default.conf index b698731..398b97e 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -8,6 +8,9 @@ upstream backend { server { listen 80; + + #FOR PROD + #listen 443 ssl; # Listen for SSL at port 443 as well location /api { rewrite /backend/(.*) /$1 break; @@ -27,5 +30,11 @@ server { location / { proxy_pass http://frontend; } + + #FOR PROD + # If a user tries to come through http, redirect them through https + #if ($scheme != "https") { + # return 301 https://$host$request_uri; + #} }