Use localhost for app_with_roles and 127.0.0.1 for app. Confirm we can deploy both and the respond to requests. Ensure the proxy is removed once both have been removed.
19 lines
319 B
Plaintext
19 lines
319 B
Plaintext
upstream loadbalancer {
|
|
server vm1:80;
|
|
server vm2:80;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
|
|
location / {
|
|
proxy_pass http://loadbalancer;
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_connect_timeout 10;
|
|
proxy_send_timeout 10;
|
|
proxy_read_timeout 10;
|
|
send_timeout 10;
|
|
}
|
|
}
|