diff options
author | Nicolas Vollmar <nvo@scaling.ch> | 2024-04-17 11:14:11 +0200 |
---|---|---|
committer | Nicolas Vollmar <nvo@scaling.ch> | 2024-04-17 16:46:48 +0200 |
commit | 785616393557c4e3f616287de81b61a68ba177ac (patch) | |
tree | 657338fbc12549a3c6741ea2f61e549fd0784af8 /interface-definitions/load-balancing_reverse-proxy.xml.in | |
parent | 24c997dee169f445548a61a62d1ae38311c3bd84 (diff) | |
download | vyos-1x-785616393557c4e3f616287de81b61a68ba177ac.tar.gz vyos-1x-785616393557c4e3f616287de81b61a68ba177ac.zip |
T6246: adds basic haproxy http-check configuration
Diffstat (limited to 'interface-definitions/load-balancing_reverse-proxy.xml.in')
-rw-r--r-- | interface-definitions/load-balancing_reverse-proxy.xml.in | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/interface-definitions/load-balancing_reverse-proxy.xml.in b/interface-definitions/load-balancing_reverse-proxy.xml.in index 49d1d858e..645fe30c7 100644 --- a/interface-definitions/load-balancing_reverse-proxy.xml.in +++ b/interface-definitions/load-balancing_reverse-proxy.xml.in @@ -102,6 +102,39 @@ </leafNode> </children> </node> + <node name="http-check"> + <properties> + <help>HTTP check configuration</help> + </properties> + <children> + <leafNode name="method"> + <properties> + <help>HTTP method used for health check</help> + <valueHelp> + <format>options|get|post|put</format> + <description>HTTP method used for health checking</description> + </valueHelp> + <constraint> + <regex>options|get|post|put</regex> + </constraint> + </properties> + </leafNode> + <leafNode name="uri"> + <properties> + <help>URI used for HTTP health check (Example: '/' or '/health')</help> + </properties> + </leafNode> + <leafNode name="expect"> + <properties> + <help>Expected response for the health check to pass</help> + <valueHelp> + <format>txt</format> + <description>expected response (Example: 'status 200-299' or 'string success')</description> + </valueHelp> + </properties> + </leafNode> + </children> + </node> #include <include/haproxy/rule-backend.xml.i> <tagNode name="server"> <properties> |