diff --git a/templates/haproxy.conf.j2 b/templates/haproxy.conf.j2 index 777cb36..333f537 100644 --- a/templates/haproxy.conf.j2 +++ b/templates/haproxy.conf.j2 @@ -2,6 +2,7 @@ global maxconn 2048 maxconnrate 40 unix-bind prefix {{ haproxy.socketroot }} user {{ haproxy.user }} group {{ haproxy.group }} + stats socket {{ haproxy.socketroot }}/haproxy-stats.sock mode 666 level admin defaults mode http @@ -59,7 +60,7 @@ frontend http {% for domains in haproxy.public %} backend backend-{{ domains.service }} - server-template {{ domains.service }} 1 _{{ domains.service }}._tcp.redxen.localhost + server-template {{ domains.service }} {{ domains.count }} _{{ domains.service }}._tcp.redxen.localhost {% if domains.httpchk %} option httpchk HEAD / HTTP/1.1\r\nHost:\ {{ domains.domain }}.redxen.eu {% endif %}