mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-04 09:03:37 +08:00
cc23ad6402
* Add file_limit option for file_server browse * Move file_limit inside browse. * add file_server_file_limit caddyfile adapt test.
36 lines
413 B
Plaintext
36 lines
413 B
Plaintext
:80
|
|
|
|
file_server {
|
|
browse {
|
|
file_limit 4000
|
|
}
|
|
}
|
|
----------
|
|
{
|
|
"apps": {
|
|
"http": {
|
|
"servers": {
|
|
"srv0": {
|
|
"listen": [
|
|
":80"
|
|
],
|
|
"routes": [
|
|
{
|
|
"handle": [
|
|
{
|
|
"browse": {
|
|
"file_limit": 4000
|
|
},
|
|
"handler": "file_server",
|
|
"hide": [
|
|
"./Caddyfile"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |