add reqadd option

This commit is contained in:
Arne Teuke
2025-02-07 16:18:46 +01:00
parent 3bb1ba9e02
commit 870288c6d5
3 changed files with 9 additions and 1 deletions

View File

@@ -9,6 +9,6 @@ Content-Type: text/html
<title>503 Service Unavailable</title>
</head>
<body><h1>503 Service Unavailable</h1>
No server is available to handle this request. This is the default error file in haproxy.
No server is available to handle this request.
</body></html>

View File

@@ -16,6 +16,12 @@ maxconn <%= @fe_maxconn %>
option <%= fe_option %>
<% end -%>
<% end -%>
<% if @fe_req_add_array and !@fe_req_add_array.empty? -%>
<% @fe_req_add_array.each do |fe_req_add| -%>
reqadd <%= fe_req_add %>
<% end -%>
<% end -%>
<% if @fe_tcp_request_array and !@fe_tcp_request_array.empty? -%>
<% @fe_tcp_request_array.each do |fe_tcp_request| -%>
tcp-request <%= fe_tcp_request %>