Fix https redirect

This commit is contained in:
Alan Friedman 2017-11-26 12:09:04 -05:00
parent 229a25ad92
commit 4358703eeb

View File

@ -9,12 +9,6 @@ files:
keepalive 256;
}
server {
listen 80;
return 301 https://$host$request_uri;
}
server {
listen 8080;
@ -43,6 +37,10 @@ files:
}
location / {
if ($http_x_forwarded_proto = "http") {
rewrite ^/(.*)$ https://darkwire.io$request_uri;
}
proxy_pass http://nodejs;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;