vedmich

nginx config linuxacademy

Jan 2nd, 2019
773
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.32 KB | None | 0 0
  1. events { worker_connections 1024; }
  2.  
  3. http {
  4.   upstream localhost {
  5.     server weather-app1:3000;
  6.     server weather-app2:3000;
  7.     server weather-app3:3000;
  8.   }
  9.   server {
  10.     listen 80;
  11.     server_name localhost;
  12.     location / {
  13.       proxy_pass http://localhost;
  14.       proxy_set_header Host $host;
  15.     }
  16.   }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment