mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-02 13:59:50 +08:00
62 lines
697 B
Plaintext
62 lines
697 B
Plaintext
|
a.example.com {
|
||
|
}
|
||
|
|
||
|
b.example.com {
|
||
|
}
|
||
|
|
||
|
:443 {
|
||
|
tls {
|
||
|
on_demand
|
||
|
}
|
||
|
}
|
||
|
----------
|
||
|
{
|
||
|
"apps": {
|
||
|
"http": {
|
||
|
"servers": {
|
||
|
"srv0": {
|
||
|
"listen": [
|
||
|
":443"
|
||
|
],
|
||
|
"routes": [
|
||
|
{
|
||
|
"match": [
|
||
|
{
|
||
|
"host": [
|
||
|
"a.example.com"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"terminal": true
|
||
|
},
|
||
|
{
|
||
|
"match": [
|
||
|
{
|
||
|
"host": [
|
||
|
"b.example.com"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"terminal": true
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"tls": {
|
||
|
"automation": {
|
||
|
"policies": [
|
||
|
{
|
||
|
"subjects": [
|
||
|
"a.example.com",
|
||
|
"b.example.com"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"on_demand": true
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|