try without upstream
parent
cccf6bfa9d
commit
cd061ddc35
|
@ -4,9 +4,9 @@ files:
|
|||
owner: root
|
||||
group: root
|
||||
content: |
|
||||
upstream nodejs {
|
||||
server 127.0.0.1:80;
|
||||
keepalive 256;
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default "upgrade";
|
||||
"" "";
|
||||
}
|
||||
|
||||
server {
|
||||
|
@ -31,11 +31,12 @@ files:
|
|||
|
||||
location / {
|
||||
proxy_pass http://nodejs;
|
||||
proxy_set_header Connection "";
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
gzip on;
|
||||
|
|
Loading…
Reference in New Issue