2021-01-05 02:26:18 +08:00
|
|
|
:8884
|
|
|
|
|
|
|
|
reverse_proxy 127.0.0.1:65535 {
|
|
|
|
health_headers {
|
|
|
|
Host example.com
|
|
|
|
X-Header-Key 95ca39e3cbe7
|
|
|
|
X-Header-Keys VbG4NZwWnipo 335Q9/MhqcNU3s2TO
|
|
|
|
X-Empty-Value
|
|
|
|
}
|
2021-12-17 23:53:11 +08:00
|
|
|
health_uri /health
|
2021-01-05 02:26:18 +08:00
|
|
|
}
|
|
|
|
----------
|
|
|
|
{
|
|
|
|
"apps": {
|
|
|
|
"http": {
|
|
|
|
"servers": {
|
|
|
|
"srv0": {
|
|
|
|
"listen": [
|
|
|
|
":8884"
|
|
|
|
],
|
|
|
|
"routes": [
|
|
|
|
{
|
|
|
|
"handle": [
|
|
|
|
{
|
|
|
|
"handler": "reverse_proxy",
|
|
|
|
"health_checks": {
|
|
|
|
"active": {
|
|
|
|
"headers": {
|
|
|
|
"Host": [
|
|
|
|
"example.com"
|
|
|
|
],
|
|
|
|
"X-Empty-Value": [
|
|
|
|
""
|
|
|
|
],
|
|
|
|
"X-Header-Key": [
|
|
|
|
"95ca39e3cbe7"
|
|
|
|
],
|
|
|
|
"X-Header-Keys": [
|
|
|
|
"VbG4NZwWnipo",
|
|
|
|
"335Q9/MhqcNU3s2TO"
|
|
|
|
]
|
2021-12-17 23:53:11 +08:00
|
|
|
},
|
|
|
|
"uri": "/health"
|
2021-01-05 02:26:18 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"upstreams": [
|
|
|
|
{
|
|
|
|
"dial": "127.0.0.1:65535"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|