reverseproxy: Caddyfile support for health_method (#6454)

* Add Caddyfile support of setting active health check request method

* Add integration test for active health check request method
This commit is contained in:
Jesper Brix Rosenkilde
2024-07-12 23:01:58 +02:00
committed by GitHub
parent dc2a5d5c52
commit 07c863637d
2 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,40 @@
:8884
reverse_proxy 127.0.0.1:65535 {
health_uri /health
health_method HEAD
}
----------
{
"apps": {
"http": {
"servers": {
"srv0": {
"listen": [
":8884"
],
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"health_checks": {
"active": {
"method": "HEAD",
"uri": "/health"
}
},
"upstreams": [
{
"dial": "127.0.0.1:65535"
}
]
}
]
}
]
}
}
}
}
}