add stats options to global
This commit is contained in:
@@ -11,6 +11,10 @@ global
|
|||||||
<% end -%>
|
<% end -%>
|
||||||
<% if @hy_hard_stop == true -%>
|
<% if @hy_hard_stop == true -%>
|
||||||
hard-stop-after <%= @hy_hard_stop_value %>
|
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 -%>
|
<% end -%>
|
||||||
chroot <%= @hy_chroot %>
|
chroot <%= @hy_chroot %>
|
||||||
pidfile <%= @hy_pid %>
|
pidfile <%= @hy_pid %>
|
||||||
|
|||||||
Reference in New Issue
Block a user