HAProxy supervision

This commit is contained in:
VC
2020-01-01 10:07:39 +01:00
parent fddbc1c9b4
commit 4f2bd402d4
2 changed files with 32 additions and 5 deletions

View File

@@ -69,19 +69,20 @@ frontend https
## {{ server }} configuration
backend http_{{ server }}
mode http
server host_{{ server }} {{ server }}:80
server host_{{ server.split('.')|join('_') }} {{ server }}:80
backend https_{{ server }}
mode tcp
server host_{{ server }} {{ server }}:443
server host_{{ server.split('.')|join('_') }} {{ server }}:443
{% endfor %}
## Stats
listen stats
bind *:8080
bind localhost:80
mode http
log global
stats enable
stats uri /
stats show-legends
stats uri /haproxy-status
stats hide-version