Files
confdroid_haproxy/templates/haproxy_frontend_rule.erb

22 lines
466 B
Plaintext
Raw Normal View History

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 %>
2025-01-27 13:56:50 +01:00
<% else -%>
#
2019-01-07 20:00:18 +01:00
<% end -%>
2025-01-27 13:56:50 +01:00
2025-01-27 13:52:48 +01:00
<% if @acl_rule != '' -%>
2025-01-27 13:42:33 +01:00
<% @acl_rule.each do |acl_rule| -%>
acl <%= acl_rule %>
<% end -%>
2018-12-30 16:01:29 +01:00
<% if @fe_use_backend != '' -%>
2018-12-30 15:50:19 +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 13:59:46 +01:00
<% end end end-%>