From f7ca1f754bc818255b64e62431018226eaaf8fc8 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 31 May 2020 11:57:28 +0200 Subject: [PATCH] Use counts given in the domains list --- templates/haproxy.conf.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 %}