nginx.conf
upstream rest_proxy {
server localhost:8080 weight=1;
server localhost:8081 weight=1;
server localhost:8082 weight=1;
}
upstream webapp_proxy {
ip_hash
server localhost:8080;
server localhost:8081;
server localhost:8082;
}
server {
listen 80;
location / {
proxy_pass http://rest_proxy;
proxy_set_header Host $host;
}
location /camunda {
proxy_pass http://webapp_proxy;
proxy_set_header Host $host;
}
}