proxy: support regex match in http(s) health checking

This commit is contained in:
nadoo committed 2021-12-23 00:17:28 +08:00
1 parent 71c7cd2823
commit 55ab44fc90
4 files changed
+23 -11

No files matched your search

+3 -2
View File
@@ -192,8 +192,9 @@ maxfailures=3
# Forwarder health check:
# check=tcp[://HOST:PORT]: tcp port connect check
# check=http://HOST[:PORT][/URI][#expect=STRING_IN_RESP_LINE]
# check=https://HOST[:PORT][/URI][#expect=STRING_IN_RESP_LINE]
# check=http://HOST[:PORT][/URI][#expect=REGEX_MATCH_IN_RESP_LINE]
# check=https://HOST[:PORT][/URI][#expect=REGEX_MATCH_IN_RESP_LINE]
# e.g. check=https://www.netflix.com/title/81215567#expect=301|404
# check=file://SCRIPT_PATH: run a check script, healthy when exitcode=0, environment variables: FORWARDER_ADDR
# check=disable: disable health check
check=http://www.msftconnecttest.com/connecttest.txt#expect=200