70 lines
1.3 KiB
JSON
70 lines
1.3 KiB
JSON
{
|
|
"tls": {
|
|
"certificates": [
|
|
{
|
|
"id": "app",
|
|
"hosts": [
|
|
"app.localhost"
|
|
],
|
|
"cert_file": "app.pem",
|
|
"key_file": "app.key"
|
|
}
|
|
]
|
|
},
|
|
"vhosts": [
|
|
{
|
|
"id": "example-1",
|
|
"frontend": {
|
|
"hosts": [
|
|
"app.localhost"
|
|
],
|
|
"listener_ids": [
|
|
"example-1-http"
|
|
]
|
|
},
|
|
"backends": [
|
|
{
|
|
"id": "demo-dns",
|
|
"url": "http://localhost:9000",
|
|
"protocol": "http1",
|
|
"allow_private": true,
|
|
"preserve_host": true,
|
|
"address_allowlist": [
|
|
"127.0.0.0/8",
|
|
"::1/128"
|
|
]
|
|
}
|
|
],
|
|
"load_balancing": {
|
|
"health_check": {
|
|
"mode": "off"
|
|
}
|
|
},
|
|
"routes": [
|
|
{
|
|
"id": "app",
|
|
"path_prefix": "/",
|
|
"backend_id": "demo-dns",
|
|
"enabled": true
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"listeners": {
|
|
"endpoints": [
|
|
{
|
|
"id": "example-1-http",
|
|
"name": "example-1 HTTP",
|
|
"scope": "internal",
|
|
"enabled": true,
|
|
"binding": {
|
|
"address": "127.0.0.1:8080",
|
|
"tls": false,
|
|
"http2": false,
|
|
"http3": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|