diff --git a/templates/haproxy_frontend_rule.erb b/templates/haproxy_frontend_rule.erb index 3b569d7..f830157 100644 --- a/templates/haproxy_frontend_rule.erb +++ b/templates/haproxy_frontend_rule.erb @@ -7,6 +7,8 @@ maxconn <%= @fe_maxconn %> <% end -%> <% if @fe_use_backend != '' -%> use_backend <%= @fe_use_backend %> + <% else -%> use_backend <%= @backend_name %> + <% end end-%>