mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-03 22:34:12 +08:00
aca4002fd8
* a * a * a * a * a * a
59 lines
755 B
Plaintext
59 lines
755 B
Plaintext
(snippet) {
|
|
header {
|
|
{block}
|
|
}
|
|
}
|
|
|
|
example.com {
|
|
import snippet {
|
|
foo bar
|
|
}
|
|
}
|
|
----------
|
|
{
|
|
"apps": {
|
|
"http": {
|
|
"servers": {
|
|
"srv0": {
|
|
"listen": [
|
|
":443"
|
|
],
|
|
"routes": [
|
|
{
|
|
"match": [
|
|
{
|
|
"host": [
|
|
"example.com"
|
|
]
|
|
}
|
|
],
|
|
"handle": [
|
|
{
|
|
"handler": "subroute",
|
|
"routes": [
|
|
{
|
|
"handle": [
|
|
{
|
|
"handler": "headers",
|
|
"response": {
|
|
"set": {
|
|
"Foo": [
|
|
"bar"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"terminal": true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|