Skip to content

Instantly share code, notes, and snippets.

@nairihar
Created July 14, 2022 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nairihar/cf01cccf6e81c5829c2bf22ecb035a21 to your computer and use it in GitHub Desktop.
Save nairihar/cf01cccf6e81c5829c2bf22ecb035a21 to your computer and use it in GitHub Desktop.
Scaling up Node.js Socket Server with Nginx and Redis | nginx.conf
upstream nodes {
server 127.0.0.1:8000;
server 127.0.0.1:8001;
server 127.0.0.1:8002;
}
server {
listen 3000;
location / {
proxy_pass http://nodes;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment