mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-28 06:33:47 +03:00
b687d7b967
* httpcaddyfile: Support multiple values for `default_bind` * Fix ordering of server blocks
54 lines
No EOL
669 B
Text
54 lines
No EOL
669 B
Text
{
|
|
default_bind tcp4/0.0.0.0 tcp6/[::]
|
|
}
|
|
|
|
example.com {
|
|
}
|
|
|
|
example.org:12345 {
|
|
}
|
|
----------
|
|
{
|
|
"apps": {
|
|
"http": {
|
|
"servers": {
|
|
"srv0": {
|
|
"listen": [
|
|
"tcp4/0.0.0.0:12345",
|
|
"tcp6/[::]:12345"
|
|
],
|
|
"routes": [
|
|
{
|
|
"match": [
|
|
{
|
|
"host": [
|
|
"example.org"
|
|
]
|
|
}
|
|
],
|
|
"terminal": true
|
|
}
|
|
]
|
|
},
|
|
"srv1": {
|
|
"listen": [
|
|
"tcp4/0.0.0.0:443",
|
|
"tcp6/[::]:443"
|
|
],
|
|
"routes": [
|
|
{
|
|
"match": [
|
|
{
|
|
"host": [
|
|
"example.com"
|
|
]
|
|
}
|
|
],
|
|
"terminal": true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |