mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 08:11:11 +08:00
Update Caddyfile
This commit is contained in:
parent
e4713d0f50
commit
8588d66a6c
1 changed files with 1 additions and 9 deletions
|
|
@ -60,12 +60,6 @@
|
||||||
header_up X-Forwarded-Proto {http.request.header.CF-Visitor}
|
header_up X-Forwarded-Proto {http.request.header.CF-Visitor}
|
||||||
}
|
}
|
||||||
|
|
||||||
(buffer) {
|
|
||||||
flush_interval 2000s
|
|
||||||
buffer_responses
|
|
||||||
max_buffer_size 256k
|
|
||||||
}
|
|
||||||
|
|
||||||
(rate_limit) {
|
(rate_limit) {
|
||||||
route /* {
|
route /* {
|
||||||
rate_limit {remote.ip} {args[0]}r/m 10000 429
|
rate_limit {remote.ip} {args[0]}r/m 10000 429
|
||||||
|
|
@ -81,9 +75,7 @@
|
||||||
import cache 0s 600s
|
import cache 0s 600s
|
||||||
import error_page
|
import error_page
|
||||||
import encode
|
import encode
|
||||||
route /* {
|
import rate_limit 60
|
||||||
rate_limit {remote.ip} 60r/m 10000 429
|
|
||||||
}
|
|
||||||
route / {
|
route / {
|
||||||
root /data/www
|
root /data/www
|
||||||
file_server
|
file_server
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue