Browse Source

Use counts given in the domains list

master
Alex 2 years ago
parent
commit
f7ca1f754b
Signed by: caskd GPG Key ID: F92BA85F61F4C173
  1. 3
      templates/haproxy.conf.j2

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