diff --git a/templates/haproxy_head.erb b/templates/haproxy_head.erb index 348d866..1438262 100644 --- a/templates/haproxy_head.erb +++ b/templates/haproxy_head.erb @@ -13,6 +13,11 @@ global daemon <% if @hy_show_stats == true -%> + listen stats + bind *:8080 + stats enable + stats uri /stats + stats auth joe:brown:P@sS stats socket <%= @hy_stats_socket %> <% end -%> @@ -45,3 +50,4 @@ defaults maxconn <%= @hy_maxconn %> ### custom rules below ### +