2022-01-19 02:29:07 +08:00
|
|
|
{
|
2022-05-09 09:32:10 +08:00
|
|
|
default_bind tcp4/0.0.0.0 tcp6/[::]
|
2022-01-19 02:29:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
example.com {
|
|
|
|
}
|
|
|
|
|
|
|
|
example.org:12345 {
|
|
|
|
}
|
|
|
|
----------
|
|
|
|
{
|
|
|
|
"apps": {
|
|
|
|
"http": {
|
|
|
|
"servers": {
|
|
|
|
"srv0": {
|
|
|
|
"listen": [
|
2022-05-09 09:32:10 +08:00
|
|
|
"tcp4/0.0.0.0:12345",
|
|
|
|
"tcp6/[::]:12345"
|
2022-01-19 02:29:07 +08:00
|
|
|
],
|
|
|
|
"routes": [
|
|
|
|
{
|
|
|
|
"match": [
|
|
|
|
{
|
|
|
|
"host": [
|
|
|
|
"example.org"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"terminal": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"srv1": {
|
|
|
|
"listen": [
|
2022-05-09 09:32:10 +08:00
|
|
|
"tcp4/0.0.0.0:443",
|
|
|
|
"tcp6/[::]:443"
|
2022-01-19 02:29:07 +08:00
|
|
|
],
|
|
|
|
"routes": [
|
|
|
|
{
|
|
|
|
"match": [
|
|
|
|
{
|
|
|
|
"host": [
|
|
|
|
"example.com"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"terminal": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|