add stats options to global

This commit is contained in:
Arne Teuke
2025-02-13 13:16:11 +01:00
parent d4fdb49d99
commit ccf64599b0

View File

@@ -58,7 +58,6 @@ defaults
timeout check <%= @hy_timeout_check %> timeout check <%= @hy_timeout_check %>
maxconn <%= @hy_maxconn %> maxconn <%= @hy_maxconn %>
<% if @hy_show_stats == true -%>
listen stats listen stats
bind 127.0.0.1:8404 # Bind to localhost if only local access is needed bind 127.0.0.1:8404 # Bind to localhost if only local access is needed
mode http mode http
@@ -68,7 +67,6 @@ listen stats
stats auth local_admin:jSAVu62MV+kr+>R. # Use a strong password stats auth local_admin:jSAVu62MV+kr+>R. # Use a strong password
stats refresh 30s stats refresh 30s
stats admin if TRUE # Allow admin actions if logged in stats admin if TRUE # Allow admin actions if logged in
<% end -%>
### custom rules below ### ### custom rules below ###