diff --git a/templates/haproxy_frontend_rule.erb b/templates/haproxy_frontend_rule.erb index 4fdea22..85bc438 100644 --- a/templates/haproxy_frontend_rule.erb +++ b/templates/haproxy_frontend_rule.erb @@ -4,9 +4,10 @@ mode <%= @frontend_mode %> bind <%= @fe_bind_mode %> <% if @fe_maxconn != '' -%> maxconn <%= @fe_maxconn %> +<% else -%> +# <% end -%> -<% if @fe_maxconn == '' -%> -<% end -%> + <% if @acl_rule != '' -%> <% @acl_rule.each do |acl_rule| -%> acl <%= acl_rule %>