Use counts given in the domains list
This commit is contained in:
parent
190452473b
commit
f7ca1f754b
|
@ -2,6 +2,7 @@ global
|
||||||
maxconn 2048
|
maxconn 2048
|
||||||
maxconnrate 40
|
maxconnrate 40
|
||||||
unix-bind prefix {{ haproxy.socketroot }} user {{ haproxy.user }} group {{ haproxy.group }}
|
unix-bind prefix {{ haproxy.socketroot }} user {{ haproxy.user }} group {{ haproxy.group }}
|
||||||
|
stats socket {{ haproxy.socketroot }}/haproxy-stats.sock mode 666 level admin
|
||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
|
@ -59,7 +60,7 @@ frontend http
|
||||||
{% for domains in haproxy.public %}
|
{% for domains in haproxy.public %}
|
||||||
|
|
||||||
backend backend-{{ domains.service }}
|
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 %}
|
{% if domains.httpchk %}
|
||||||
option httpchk HEAD / HTTP/1.1\r\nHost:\ {{ domains.domain }}.redxen.eu
|
option httpchk HEAD / HTTP/1.1\r\nHost:\ {{ domains.domain }}.redxen.eu
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Reference in New Issue