thohoh
2/18/2018 - 9:41 AM

Nginx

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