2025-01-29 23:45:11 +01:00
|
|
|
<% if @frontend_name != '' -%>
|
2025-02-12 15:45:19 +01:00
|
|
|
frontend <%= @frontend_name %>
|
2025-01-29 23:45:11 +01:00
|
|
|
<% end -%>
|
|
|
|
|
<% if @frontend_mode != '' -%>
|
2025-02-12 15:45:19 +01:00
|
|
|
mode <%= @frontend_mode %>
|
2025-01-29 23:45:11 +01:00
|
|
|
<% end -%>
|
|
|
|
|
<% if @fe_bind_mode != '' -%>
|
2025-02-12 15:45:19 +01:00
|
|
|
bind <%= @fe_bind_mode %>
|
2025-01-29 23:45:11 +01:00
|
|
|
<% end -%>
|
2025-01-28 18:08:49 +01:00
|
|
|
<% if @fe_maxconn != '' -%>
|
2025-02-12 15:45:19 +01:00
|
|
|
maxconn <%= @fe_maxconn %>
|
2025-01-28 18:08:49 +01:00
|
|
|
<% end -%>
|
2025-02-03 13:49:27 +01:00
|
|
|
<% if @fe_option_array and !@fe_option_array.empty? -%>
|
|
|
|
|
<% @fe_option_array.each do |fe_option| -%>
|
2025-02-12 15:45:19 +01:00
|
|
|
option <%= fe_option %>
|
2025-02-03 13:49:27 +01:00
|
|
|
<% end -%>
|
2025-02-07 16:35:00 +01:00
|
|
|
<% if @fe_http_request_array and !@fe_http_request_array.empty? -%>
|
|
|
|
|
<% @fe_http_request_array.each do |fe_http_request| -%>
|
2025-02-12 15:45:19 +01:00
|
|
|
http-request <%= fe_http_request %>
|
2025-02-07 16:18:46 +01:00
|
|
|
<% end -%>
|
|
|
|
|
<% end -%>
|
2025-01-29 23:02:45 +01:00
|
|
|
<% if @fe_tcp_request_array and !@fe_tcp_request_array.empty? -%>
|
|
|
|
|
<% @fe_tcp_request_array.each do |fe_tcp_request| -%>
|
2025-02-12 15:45:19 +01:00
|
|
|
tcp-request <%= fe_tcp_request %>
|
2025-01-29 23:02:45 +01:00
|
|
|
<% end -%>
|
|
|
|
|
<% end -%>
|
2025-01-28 18:08:49 +01:00
|
|
|
<% if @acl_rule_front_array and !@acl_rule_front_array.empty? -%>
|
2025-01-28 18:23:48 +01:00
|
|
|
<% @acl_rule_front_array.each do |acl_rule_front| -%>
|
2025-02-12 15:45:19 +01:00
|
|
|
acl <%= acl_rule_front %>
|
2025-01-28 18:08:49 +01:00
|
|
|
<% end -%>
|
|
|
|
|
<% end -%>
|
|
|
|
|
<% if @fe_use_backend_array and !@fe_use_backend_array.empty? -%>
|
|
|
|
|
<% @fe_use_backend_array.each do |fe_use_backend| -%>
|
2025-02-12 15:45:19 +01:00
|
|
|
use_backend <%= fe_use_backend %>
|
2025-01-28 18:08:49 +01:00
|
|
|
<% end -%>
|
|
|
|
|
<% end -%>
|
2025-01-28 18:42:22 +01:00
|
|
|
default_backend <%= @default_backend %>
|
2025-01-29 23:29:44 +01:00
|
|
|
|
|
|
|
|
|
2019-01-07 20:00:18 +01:00
|
|
|
<% end -%>
|