add allowed-redirect config for upstream

This commit is contained in:
2025-01-21 15:18:07 +08:00
parent 08eed185cf
commit 7341742feb
3 changed files with 25 additions and 4 deletions

View File

@ -83,6 +83,7 @@ upstream:
match:
match: /chaotic-aur/(.*)
replace: /$1
allowed-redirect: "^https?://cf-builds.garudalinux.org/.*/chaotic-aur/.*$"
misc:
first-chunk-bytes: 31457280 # 1024*1024*30, all upstreams with 200 response will wait for the first chunks to select a upstream by bandwidth, instead of by latency. defaults to 50M