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 -%>