From 21774b39cd176e9df19b9f102f7c84a670770b78 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Wed, 12 Feb 2025 14:56:23 +0100 Subject: [PATCH] add stickiness options --- templates/haproxy_head.erb | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/templates/haproxy_head.erb b/templates/haproxy_head.erb index 147d4b9..9da72a9 100644 --- a/templates/haproxy_head.erb +++ b/templates/haproxy_head.erb @@ -19,18 +19,6 @@ global group <%= @hy_user_name %> daemon -<% if @hy_show_stats == true -%> -listen stats - bind 127.0.0.1:8404 # Bind to localhost if only local access is needed - mode http - stats enable - stats uri /haproxy?stats - stats realm Strictly\ Private - stats auth local_admin:jSAVu62MV+kr+>R. # Use a strong password - stats refresh 30s - stats admin if TRUE # Allow admin actions if logged in -<% end -%> - # utilize system-wide crypto-policies ssl-default-bind-ciphers PROFILE=SYSTEM ssl-default-server-ciphers PROFILE=SYSTEM @@ -66,5 +54,17 @@ defaults timeout check <%= @hy_timeout_check %> maxconn <%= @hy_maxconn %> +<% if @hy_show_stats == true -%> +listen stats + bind 127.0.0.1:8404 # Bind to localhost if only local access is needed + mode http + stats enable + stats uri /haproxy?stats + stats realm Strictly\ Private + stats auth local_admin:jSAVu62MV+kr+>R. # Use a strong password + stats refresh 30s + stats admin if TRUE # Allow admin actions if logged in +<% end -%> + ### custom rules below ###