From d4fdb49d9902aabf907477aa62ea4e3c60413b9f Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Thu, 13 Feb 2025 13:14:43 +0100 Subject: [PATCH] add stats options to global --- templates/haproxy_head.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/haproxy_head.erb b/templates/haproxy_head.erb index 9da72a9..3f7145b 100644 --- a/templates/haproxy_head.erb +++ b/templates/haproxy_head.erb @@ -11,6 +11,10 @@ global <% end -%> <% if @hy_hard_stop == true -%> hard-stop-after <%= @hy_hard_stop_value %> +<% end -%> +<% if @hy_show_stats == true -%> + stats socket /run/haproxy/admin.sock mode 660 level admin expose-fd listeners + stats timeout 30s <% end -%> chroot <%= @hy_chroot %> pidfile <%= @hy_pid %>