mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-26 13:43:47 +03:00
67 lines
No EOL
832 B
Text
67 lines
No EOL
832 B
Text
# 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"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
} |