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