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,7 +31,8 @@ files:
|
|||
|
||||
location / {
|
||||
proxy_pass http://nodejs;
|
||||
proxy_set_header Connection "";
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue