| 1 |
# Health with query in the uri |
| 2 |
:8443 { |
| 3 |
reverse_proxy localhost:54321 { |
| 4 |
health_uri /health?ready=1 |
| 5 |
health_status 2xx |
| 6 |
} |
| 7 |
} |
| 8 |
|
| 9 |
# Health without query in the uri |
| 10 |
:8444 { |
| 11 |
reverse_proxy localhost:54321 { |
| 12 |
health_uri /health |
| 13 |
health_status 200 |
| 14 |
} |
| 15 |
} |
| 16 |
|
| 17 |
---------- |
| 18 |
{ |
| 19 |
"apps": { |
| 20 |
"http": { |
| 21 |
"servers": { |
| 22 |
"srv0": { |
| 23 |
"listen": [ |
| 24 |
":8443" |
| 25 |
], |
| 26 |
"routes": [ |
| 27 |
{ |
| 28 |
"handle": [ |
| 29 |
{ |
| 30 |
"handler": "reverse_proxy", |
| 31 |
"health_checks": { |
| 32 |
"active": { |
| 33 |
"expect_status": 2, |
| 34 |
"uri": "/health?ready=1" |
| 35 |
} |
| 36 |
}, |
| 37 |
"upstreams": [ |
| 38 |
{ |
| 39 |
"dial": "localhost:54321" |
| 40 |
} |
| 41 |
] |
| 42 |
} |
| 43 |
] |
| 44 |
} |
| 45 |
] |
| 46 |
}, |
| 47 |
"srv1": { |
| 48 |
"listen": [ |
| 49 |
":8444" |
| 50 |
], |
| 51 |
"routes": [ |
| 52 |
{ |
| 53 |
"handle": [ |
| 54 |
{ |
| 55 |
"handler": "reverse_proxy", |
| 56 |
"health_checks": { |
| 57 |
"active": { |
| 58 |
"expect_status": 200, |
| 59 |
"uri": "/health" |
| 60 |
} |
| 61 |
}, |
| 62 |
"upstreams": [ |
| 63 |
{ |
| 64 |
"dial": "localhost:54321" |
| 65 |
} |
| 66 |
] |
| 67 |
} |
| 68 |
] |
| 69 |
} |
| 70 |
] |
| 71 |
} |
| 72 |
} |
| 73 |
} |
| 74 |
} |
| 75 |
} |