Route request to upstream api by default, route request from 192.168.1.1 to 10.0.0.15:8080
upstream api {
server 10.0.0.15:8080 weight=200 ;# max_fails=5 fail_timeout=120s;
server 10.0.0.16:8080 weight=200 ;# max_fails=5 fail_timeout=120s;
server 10.0.0.17:8080 weight=200 ;# max_fails=5 fail_timeout=120s;
}
map $remote_addr $api_map {
"192.168.1.1" "10.0.0.15:8080" ;
default api;
}