Migrated to ansible roles
This commit is contained in:
13
roles/nginx-loadbalancer/templates/loadbalancer.cfg.j2
Normal file
13
roles/nginx-loadbalancer/templates/loadbalancer.cfg.j2
Normal file
@ -0,0 +1,13 @@
|
||||
upstream app {
|
||||
{% for host in groups['webserver'] %}
|
||||
server {{ host }}:80;
|
||||
{% endfor %}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
location / {
|
||||
proxy_pass http://app;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user