mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-27 22:23:48 +03:00
54a0c8f948
* Add an option to specify the body used for active health checks * Replacer on request body
40 lines
574 B
Text
40 lines
574 B
Text
:8884
|
|
|
|
reverse_proxy 127.0.0.1:65535 {
|
|
health_uri /health
|
|
health_request_body "test body"
|
|
}
|
|
----------
|
|
{
|
|
"apps": {
|
|
"http": {
|
|
"servers": {
|
|
"srv0": {
|
|
"listen": [
|
|
":8884"
|
|
],
|
|
"routes": [
|
|
{
|
|
"handle": [
|
|
{
|
|
"handler": "reverse_proxy",
|
|
"health_checks": {
|
|
"active": {
|
|
"body": "test body",
|
|
"uri": "/health"
|
|
}
|
|
},
|
|
"upstreams": [
|
|
{
|
|
"dial": "127.0.0.1:65535"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|