From ddcfef8d8a565bab48b3e3b19181471779dbbbaf Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Wed, 29 Jan 2025 23:45:11 +0100 Subject: [PATCH] add tcp_option --- templates/haproxy_frontend_rule.erb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/haproxy_frontend_rule.erb b/templates/haproxy_frontend_rule.erb index 5bc229b..8f19734 100644 --- a/templates/haproxy_frontend_rule.erb +++ b/templates/haproxy_frontend_rule.erb @@ -1,8 +1,13 @@ <% if @fqdn == @haproxy_fqdn -%> +<% if @frontend_name != '' -%> frontend <%= @frontend_name %> +<% end -%> +<% if @frontend_mode != '' -%> mode <%= @frontend_mode %> +<% end -%> +<% if @fe_bind_mode != '' -%> bind <%= @fe_bind_mode %> - +<% end -%> <% if @fe_maxconn != '' -%> maxconn <%= @fe_maxconn %> <% end -%>