Files
RustProxy/examples/headless-minimal.json
T
2026-11-15 13:45:15 +01:00

48 lines
917 B
JSON

{
"vhosts": [
{
"id": "app",
"websockets": true,
"frontend": {
"hosts": [
"*"
]
},
"backends": [
{
"id": "app-1",
"url": "http://127.0.0.1:3101",
"allow_private": true
},
{
"id": "app-2",
"url": "http://127.0.0.1:3102",
"allow_private": true
},
{
"id": "app-3",
"url": "http://127.0.0.1:3103",
"allow_private": true
}
],
"load_balancing": {
"algorithm": "round_robin",
"health_check": {
"mode": "http",
"path": "/health",
"interval_ms": 5000,
"timeout_ms": 2000,
"fall": 2,
"rise": 1
}
},
"cache": {
"enabled": true
}
}
],
"cache": {
"enabled": true,
"max_bytes": 268435456
}
}