From 6101885fdeb40902e21ae137da49b84483bb2127 Mon Sep 17 00:00:00 2001 From: Karl Date: Thu, 7 Nov 2019 08:57:12 +1100 Subject: [PATCH] Add /stats to https configuration Signed-off-by: Karl --- haproxy.tmpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/haproxy.tmpl b/haproxy.tmpl index 8108000..e3d1d5d 100644 --- a/haproxy.tmpl +++ b/haproxy.tmpl @@ -51,6 +51,11 @@ frontend https bind *:443 ssl crt /app/server.pem reqadd X-Forwarded-Proto:\ https option socket-stats + + stats enable + stats refresh 30s + stats show-node + stats uri /stats {{range $key, $container := whereExist $ "Env.AMAZEEIO" }} {{$host := coalesce $container.Env.AMAZEEIO_URL $container.Name }} use_backend http_{{$host}} if { hdr_dom(host) -i {{$host}} }