41 lines
1.1 KiB
JSON
41 lines
1.1 KiB
JSON
{
|
|
"headless": {
|
|
"watch": true,
|
|
"acme": {
|
|
"email": "ops@example.com",
|
|
"agree_tos": true,
|
|
"staging": false,
|
|
"auto": true,
|
|
"domains": [
|
|
["app.example.com", "www.app.example.com"]
|
|
]
|
|
}
|
|
},
|
|
"vhosts": [
|
|
{
|
|
"id": "app",
|
|
"force_ssl": true,
|
|
"websockets": true,
|
|
"forward_client_ip": true,
|
|
"frontend": { "hosts": ["app.example.com", "www.app.example.com"] },
|
|
"backends": [
|
|
{ "id": "app-1", "url": "http://10.0.0.11:3001", "allow_private": true },
|
|
{ "id": "app-2", "url": "http://10.0.0.12:3001", "allow_private": true }
|
|
],
|
|
"load_balancing": {
|
|
"algorithm": "least_connections",
|
|
"health_check": { "mode": "http", "path": "/health", "interval_ms": 5000, "timeout_ms": 2000, "fall": 2, "rise": 1 },
|
|
"passive_health": { "enabled": true }
|
|
}
|
|
},
|
|
{
|
|
"id": "api",
|
|
"force_ssl": true,
|
|
"frontend": { "hosts": ["api.example.com"] },
|
|
"backends": [
|
|
{ "id": "api-1", "url": "http://10.0.0.21:8080", "allow_private": true, "max_concurrent_requests": 200, "queue_timeout_ms": 2000 }
|
|
]
|
|
}
|
|
]
|
|
}
|