2025-01-27 12:36:31 +01:00
|
|
|
<% if @fqdn == @haproxy_fqdn -%>
|
2018-12-30 15:50:19 +01:00
|
|
|
frontend <%= @frontend_name %>
|
|
|
|
|
mode <%= @frontend_mode %>
|
2018-12-30 16:08:58 +01:00
|
|
|
bind <%= @fe_bind_mode %>
|
2019-01-07 20:00:18 +01:00
|
|
|
<% if @fe_maxconn != '' -%>
|
|
|
|
|
maxconn <%= @fe_maxconn %>
|
|
|
|
|
<% end -%>
|
2025-01-28 16:32:55 +01:00
|
|
|
<% if !@acl_rule_front_array.empty? -%>
|
|
|
|
|
<% @acl_rule_front_array.each do |acl_rule| -%>
|
|
|
|
|
acl <%= acl_rule %>
|
2025-01-27 13:42:33 +01:00
|
|
|
<% end -%>
|
2025-01-28 16:57:26 +01:00
|
|
|
<% if !@fe_use_backend_array.empty? -%>
|
|
|
|
|
<% @fe_use_backend_array.each do |fe_use_backend| -%>
|
2025-01-28 16:32:55 +01:00
|
|
|
use_backend <%= fe_use_backend %>
|
2025-01-27 13:28:27 +01:00
|
|
|
|
2018-12-30 16:01:29 +01:00
|
|
|
<% else -%>
|
|
|
|
|
use_backend <%= @backend_name %>
|
2025-01-27 13:28:27 +01:00
|
|
|
|
2025-01-27 14:13:34 +01:00
|
|
|
<% end end -%>
|