mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-26 21:53:48 +03:00
78 lines
No EOL
1 KiB
Text
78 lines
No EOL
1 KiB
Text
:80
|
|
|
|
push * /foo.txt
|
|
|
|
push {
|
|
GET /foo.txt
|
|
}
|
|
|
|
push {
|
|
GET /foo.txt
|
|
HEAD /foo.txt
|
|
}
|
|
|
|
push {
|
|
headers {
|
|
Foo bar
|
|
}
|
|
}
|
|
----------
|
|
{
|
|
"apps": {
|
|
"http": {
|
|
"servers": {
|
|
"srv0": {
|
|
"listen": [
|
|
":80"
|
|
],
|
|
"routes": [
|
|
{
|
|
"handle": [
|
|
{
|
|
"handler": "push",
|
|
"resources": [
|
|
{
|
|
"target": "/foo.txt"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"handler": "push",
|
|
"resources": [
|
|
{
|
|
"method": "GET",
|
|
"target": "/foo.txt"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"handler": "push",
|
|
"resources": [
|
|
{
|
|
"method": "GET",
|
|
"target": "/foo.txt"
|
|
},
|
|
{
|
|
"method": "HEAD",
|
|
"target": "/foo.txt"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"handler": "push",
|
|
"headers": {
|
|
"set": {
|
|
"Foo": [
|
|
"bar"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |