HAProxy supervision
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user