add backend options

This commit is contained in:
Arne Teuke
2025-02-22 14:21:19 +01:00
parent a21b5a2edf
commit 7341c24bc9
2 changed files with 16 additions and 8 deletions

View File

@@ -2,26 +2,32 @@
<% if @backend_configs and !@backend_configs.empty? -%>
<% @backend_configs.each do |backend_config| -%>
backend <%= backend_config['backend_name'] %>
mode <%= backend_config['be_mode'] %>
backend <%= backend_config['backend_name'] %>
mode <%= backend_config['be_mode'] %>
<% if backend_config['be_balance'] and backend_config['be_balance'] != '' -%>
balance <%= backend_config['be_balance'] %>
balance <%= backend_config['be_balance'] %>
<% end -%>
<% if backend_config['be_option'] and backend_config['be_option'] != '' -%>
option <%= backend_config['be_option'] %>
option <%= backend_config['be_option'] %>
<% end -%>
<% if backend_config['be_stick_table'] and backend_config['be_stick_table'] != '' -%>
stick-table <%= backend_config['be_stick_table'] %>
stick-table <%= backend_config['be_stick_table'] %>
<% end -%>
<% if backend_config['be_stick_on'] and backend_config['be_stick_on'] != '' -%>
stick on <%= backend_config['be_stick_on'] %>
stick on <%= backend_config['be_stick_on'] %>
<% end -%>
<% if backend_config['be_http_check'] and backend_config['be_http_check'] != '' -%>
http-check <%= backend_config['be_http_check'] %>
http-check <%= backend_config['be_http_check'] %>
<% end -%>
<% if backend_config['be_acl_rule'] and backend_config['be_acl_rule'] != '' -%>
acl <%= backend_config['be_acl_rule'] %>
<% end -%>
<% if backend_config['be_http_request'] and backend_config['be_http_request'] != '' -%>
http-request <%= backend_config['be_http_request'] %>
<% end -%>
<% if backend_config['be_server_name_array'] and !backend_config['be_server_name_array'].empty? -%>
<% backend_config['be_server_name_array'].each do |be_server_name| -%>
server <%= be_server_name %>
server <%= be_server_name %>
<% end -%>
<% end -%>
<% end -%>