Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (29 sloc) 673 Bytes
upstream login {
server awesome.app:80 backup;
server awesome.app:3001;
}
upstream profile {
server awesome.app:80 backup;
server awesome.app:3002;
}
server {
listen 80;
server_name awesome.app;
sendfile off;
proxy_max_temp_file_size 0;
location /login {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://login;
}
location /profile {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://profile;
}
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://awesome.app;
}
}
You can’t perform that action at this time.