WIP loadbalancer config template
This commit is contained in:
parent
b9c35eac3c
commit
714cdecd0a
15
playbooks/templates/loadbalancer.cfg.j2
Normal file
15
playbooks/templates/loadbalancer.cfg.j2
Normal file
@ -0,0 +1,15 @@
|
||||
http {
|
||||
upstream app {
|
||||
{% for host in ip %}
|
||||
server {{ host.ip }};
|
||||
{% endfor %}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
location / {
|
||||
proxy_pass http://app;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user