try without upstream

pull/33/head
unknown 2019-04-16 13:45:32 -04:00
parent cccf6bfa9d
commit cd061ddc35
1 changed files with 9 additions and 8 deletions

View File

@ -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;