Skip to content

Instantly share code, notes, and snippets.

@MichalKarol
Created April 20, 2021 02:16
Show Gist options
  • Save MichalKarol/a64c338ffaecd8fc74db55c366da92e8 to your computer and use it in GitHub Desktop.
Save MichalKarol/a64c338ffaecd8fc74db55c366da92e8 to your computer and use it in GitHub Desktop.
Nginx conf
server {
listen 4000;
location /sockjs-node/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass "http://localhost:3000/sockjs-node/";
}
location /ws {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass "http://localhost:3000/ws";
}
location /api {
proxy_pass http://localhost:8000;
}
location / {
proxy_pass http://localhost:3000;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment