Use counts given in the domains list

This commit is contained in:
Alex 2020-05-31 11:57:28 +02:00
parent 190452473b
commit f7ca1f754b
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 2 additions and 1 deletions

View File

@ -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 %}