93 lines
1.8 KiB
JSON
93 lines
1.8 KiB
JSON
{
|
|
"cache": {
|
|
"enabled": false
|
|
},
|
|
"compression": {
|
|
"gzip": true,
|
|
"br": true,
|
|
"min_bytes": 1024
|
|
},
|
|
"pages": {
|
|
"direct_ip": {
|
|
"kind": "welcome",
|
|
"status": 200
|
|
}
|
|
},
|
|
"vhosts": [
|
|
{
|
|
"id": "mock",
|
|
"frontend": {
|
|
"hosts": [
|
|
"mock.localhost"
|
|
],
|
|
"listener_ids": [
|
|
"mock-http"
|
|
]
|
|
},
|
|
"backends": [
|
|
{
|
|
"id": "origin-a",
|
|
"url": "http://127.0.0.1:9001",
|
|
"allow_private": true,
|
|
"preserve_host": true
|
|
}
|
|
],
|
|
"load_balancing": {
|
|
"health_check": {
|
|
"mode": "http",
|
|
"path": "/health",
|
|
"interval_ms": 1000,
|
|
"timeout_ms": 800,
|
|
"slow_response_ms": 600,
|
|
"fall": 2,
|
|
"rise": 1
|
|
},
|
|
"slow_start_seconds": 0
|
|
},
|
|
"cache": {
|
|
"enabled": true,
|
|
"expose_status": true,
|
|
"expose_hits": true,
|
|
"expose_cache_status": true,
|
|
"max_ttl_seconds": 300,
|
|
"default_ttl_seconds": 30
|
|
},
|
|
"headers": {
|
|
"response": [
|
|
{
|
|
"op": "set",
|
|
"name": "x-site",
|
|
"value": "mock"
|
|
}
|
|
]
|
|
},
|
|
"security_headers": {
|
|
"nosniff": true
|
|
},
|
|
"pages": {
|
|
"errors": {
|
|
"503": {
|
|
"kind": "html",
|
|
"html": "<!doctype html><meta charset=\"utf-8\"><title>Maintenance</title><h1>Origin unavailable</h1><p>Please try again soon.</p>"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"listeners": {
|
|
"endpoints": [
|
|
{
|
|
"id": "mock-http",
|
|
"name": "mock HTTP",
|
|
"scope": "internal",
|
|
"enabled": true,
|
|
"binding": {
|
|
"address": "127.0.0.1:8080",
|
|
"tls": false,
|
|
"http2": false
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|