diff --git a/templates/haproxy.cfg.tmpl b/templates/haproxy.cfg.tmpl index 4d05e141d8c252082f540fbf7616819c89829a2f..8797133ced4e1a65e08fbb7a52815853048fbad6 100644 --- a/templates/haproxy.cfg.tmpl +++ b/templates/haproxy.cfg.tmpl @@ -10,6 +10,7 @@ defaults mode http option forwardfor option httpclose + option http-server-close option httplog option dontlognull retries 3 @@ -39,6 +40,7 @@ mode http {{ range $host, $containers := groupByMulti $ "Env.VIRTUAL_HOST" "," }} backend {{ $host }} + option http-server-close cookie SERVERID insert nocache indirect {{ range $container := $containers }} server Server {{ $container.IP }}:80 cookie Server