Added sockjs-node proxy (issue: not working HMR)

This commit is contained in:
Alexey Safronov 2019-07-08 12:22:03 +03:00
parent 48087d1e00
commit 0e08a11a7d

View File

@ -57,4 +57,18 @@
proxy_set_header X-REWRITER-URL $X_REWRITER_URL;
}
location /sockjs-node {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://localhost:5001;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}