Right now, we have an nginx server behind a load balancer which act as a reverse proxy to our internal web server. We can add another nginx dynamically but what I would like to know is if it's possible to combine each nginx's configuration via heartbeat.
For example, 1st nginx has this this proxy_pass
location /getInfoApp {
proxy_pass http://internal-web-A;
}
Now the 2nd nginx gets created dynamically with this configuration
location /captureWeather {
proxy_pass http://internal-web-B;
}
When both starts syncing via heartbeat, I would like their config to become
location /getInfoApp {
proxy_pass http://internal-web-A;
}
location /captureWeather {
proxy_pass http://internal-web-B;
}