update default config
This commit is contained in:
parent
5adf734e53
commit
8897fb0cd7
26
config.yaml
26
config.yaml
@ -9,7 +9,7 @@ upstream:
|
|||||||
replace: '/$1/$2'
|
replace: '/$1/$2'
|
||||||
- server: http://mirrors.ustc.edu.cn
|
- server: http://mirrors.ustc.edu.cn
|
||||||
match:
|
match:
|
||||||
match: /(debian|ubuntu|ubuntu-releases|alpine|archlinux|kali|manjaro|msys2|almalinux|rocky|centos|centos-stream|centos-vault|fedora|epel|elrepo|remi|rpmfusion|tailscale|gnu)/(.*)
|
match: /(debian|ubuntu|ubuntu-releases|alpine|archlinux|kali|manjaro|msys2|almalinux|rocky|centos|centos-stream|centos-vault|fedora|epel|elrepo|remi|rpmfusion|tailscale|gnu|rust-static)/(.*)
|
||||||
replace: '/$1/$2'
|
replace: '/$1/$2'
|
||||||
- server: https://packages.microsoft.com/repos/code
|
- server: https://packages.microsoft.com/repos/code
|
||||||
match:
|
match:
|
||||||
@ -71,6 +71,18 @@ upstream:
|
|||||||
match:
|
match:
|
||||||
match: /(debian|debian-security)/(.*)
|
match: /(debian|debian-security)/(.*)
|
||||||
replace: /$1/$2
|
replace: /$1/$2
|
||||||
|
- server: https://static.rust-lang.org
|
||||||
|
match:
|
||||||
|
match: /rust-static/(.*)
|
||||||
|
replace: /$1
|
||||||
|
- server: https://storage.flutter-io.cn
|
||||||
|
match:
|
||||||
|
match: /flutter-storage/(.*)
|
||||||
|
replace: /$1
|
||||||
|
- server: https://cdn-mirror.chaotic.cx/chaotic-aur
|
||||||
|
match:
|
||||||
|
match: /chaotic-aur/(.*)
|
||||||
|
replace: /$1
|
||||||
|
|
||||||
misc:
|
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
|
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
|
||||||
@ -79,15 +91,21 @@ misc:
|
|||||||
cache:
|
cache:
|
||||||
timeout: 1h
|
timeout: 1h
|
||||||
policies:
|
policies:
|
||||||
- match: '.*\.(rpm|deb)$'
|
- match: '.*\.(rpm|deb|apk)$' # rpm/deb/apk won't change, create only
|
||||||
refresh-after: never
|
refresh-after: never
|
||||||
- match: '^/.*-security/.*'
|
- match: '^/.*-security/.*' # mostly ubuntu/debian security
|
||||||
refresh-after: 1h
|
refresh-after: 1h
|
||||||
|
- match: '^/archlinux-localaur/.*' # archlinux local repo
|
||||||
|
refresh-after: never
|
||||||
|
- match: '^/(archlinux.*|chaotic-aur)/*.tar.*' # archlinux packages
|
||||||
|
refresh-after: never
|
||||||
|
- match: '/chaotic-aur/.*\.db$' # archlinux chaotic-aur database
|
||||||
|
refresh-after: 24h
|
||||||
|
|
||||||
storage:
|
storage:
|
||||||
type: local # ignored
|
type: local # ignored
|
||||||
local:
|
local:
|
||||||
path: /data # defaults to ./data
|
path: ./data # defaults to ./data
|
||||||
|
|
||||||
accel:
|
accel:
|
||||||
# example nginx config:
|
# example nginx config:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user