add stickiness options

This commit is contained in:
Arne Teuke
2025-02-12 14:56:23 +01:00
parent 981dc52edb
commit 21774b39cd

View File

@@ -19,18 +19,6 @@ global
group <%= @hy_user_name %> group <%= @hy_user_name %>
daemon 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 # utilize system-wide crypto-policies
ssl-default-bind-ciphers PROFILE=SYSTEM ssl-default-bind-ciphers PROFILE=SYSTEM
ssl-default-server-ciphers PROFILE=SYSTEM ssl-default-server-ciphers PROFILE=SYSTEM
@@ -66,5 +54,17 @@ defaults
timeout check <%= @hy_timeout_check %> timeout check <%= @hy_timeout_check %>
maxconn <%= @hy_maxconn %> 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 ### ### custom rules below ###