summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorWindom WU <drw_08@hotmail.com>2024-04-23 14:39:02 +0800
committerWindom WU <drw_08@hotmail.com>2024-04-23 14:39:02 +0800
commit984c386d11ead8371b7ac381e6c0921473e557ed (patch)
tree62401ea0459f9009b88b44202f3fc42ac402228a /interface-definitions
parentb5d3d36d1f70e53ef6a8a6634ab863d94d791bf2 (diff)
downloadvyos-1x-984c386d11ead8371b7ac381e6c0921473e557ed.tar.gz
vyos-1x-984c386d11ead8371b7ac381e6c0921473e557ed.zip
T6226: add HAPROXY tcp-request related block to load-balancing reverse proxy config
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/include/haproxy/tcp-request.xml.i22
-rw-r--r--interface-definitions/load-balancing_reverse-proxy.xml.in1
2 files changed, 23 insertions, 0 deletions
diff --git a/interface-definitions/include/haproxy/tcp-request.xml.i b/interface-definitions/include/haproxy/tcp-request.xml.i
new file mode 100644
index 000000000..3d60bd8ad
--- /dev/null
+++ b/interface-definitions/include/haproxy/tcp-request.xml.i
@@ -0,0 +1,22 @@
+<!-- include start from haproxy/tcp-request.xml.i -->
+<node name="tcp-request">
+ <properties>
+ <help>TCP request directive</help>
+ </properties>
+ <children>
+ <leafNode name="inspect-delay">
+ <properties>
+ <help>Set the maximum allowed time to wait for data during content inspection</help>
+ <valueHelp>
+ <format>u32:1-65535</format>
+ <description>The timeout value specified in milliseconds</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-65535"/>
+ </constraint>
+ <constraintErrorMessage>The timeout value must be in range 1 to 65535 milliseconds</constraintErrorMessage>
+ </properties>
+ </leafNode>
+ </children>
+</node>
+<!-- include end -->
diff --git a/interface-definitions/load-balancing_reverse-proxy.xml.in b/interface-definitions/load-balancing_reverse-proxy.xml.in
index eb01580da..6a3b3cef1 100644
--- a/interface-definitions/load-balancing_reverse-proxy.xml.in
+++ b/interface-definitions/load-balancing_reverse-proxy.xml.in
@@ -38,6 +38,7 @@
#include <include/haproxy/mode.xml.i>
#include <include/port-number.xml.i>
#include <include/haproxy/rule-frontend.xml.i>
+ #include <include/haproxy/tcp-request.xml.i>
<leafNode name="redirect-http-to-https">
<properties>
<help>Redirect HTTP to HTTPS</help>