diff --git a/templates/haproxy.cfg b/templates/haproxy.cfg index fccf1c9d..548766f8 100644 --- a/templates/haproxy.cfg +++ b/templates/haproxy.cfg @@ -8,8 +8,8 @@ global defaults log global - mode http - option httplog + mode tcp + option tcplog option dontlognull retries 3 timeout queue 1000 @@ -19,6 +19,7 @@ defaults listen stats :8888 mode http + option httplog stats enable stats hide-version stats realm Haproxy\ Statistics @@ -29,7 +30,6 @@ listen stats :8888 {% for service, ports in service_ports.iteritems() -%} listen {{ service }} 0.0.0.0:{{ ports[0] }} balance roundrobin - option tcplog {% for unit, address in units.iteritems() -%} server {{ unit }} {{ address }}:{{ ports[1] }} check {% endfor %}