Skip to content

Instantly share code, notes, and snippets.

@basedalexander
Last active February 18, 2018 12:30
Show Gist options
  • Save basedalexander/5d7e99288254eae75afecd553188e182 to your computer and use it in GitHub Desktop.
Save basedalexander/5d7e99288254eae75afecd553188e182 to your computer and use it in GitHub Desktop.
Nginx
#load balancingss
# sudo vi /usr/local/etc/nginx/nginx.conf
upstream project {
server 127.0.0.1:3000;
# server 22.22.22.3:3000;
# server 22.22.22.5:3000;
}
server {
listen 80;
location / {
proxy_pass http://project;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment