mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-25 05:09:20 +08:00
67 lines
832 B
Plaintext
67 lines
832 B
Plaintext
|
# example from https://caddy.community/t/21415
|
||
|
a.com {
|
||
|
tls {
|
||
|
get_certificate http http://foo.com/get
|
||
|
}
|
||
|
}
|
||
|
|
||
|
b.com {
|
||
|
}
|
||
|
----------
|
||
|
{
|
||
|
"apps": {
|
||
|
"http": {
|
||
|
"servers": {
|
||
|
"srv0": {
|
||
|
"listen": [
|
||
|
":443"
|
||
|
],
|
||
|
"routes": [
|
||
|
{
|
||
|
"match": [
|
||
|
{
|
||
|
"host": [
|
||
|
"a.com"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"terminal": true
|
||
|
},
|
||
|
{
|
||
|
"match": [
|
||
|
{
|
||
|
"host": [
|
||
|
"b.com"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"terminal": true
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"tls": {
|
||
|
"automation": {
|
||
|
"policies": [
|
||
|
{
|
||
|
"subjects": [
|
||
|
"a.com"
|
||
|
],
|
||
|
"get_certificate": [
|
||
|
{
|
||
|
"url": "http://foo.com/get",
|
||
|
"via": "http"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"subjects": [
|
||
|
"b.com"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|