mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-18 10:49:02 +00:00
Fix https redirect
This commit is contained in:
parent
229a25ad92
commit
4358703eeb
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user