diff --git a/config.yaml b/config.yaml index 26235f4..7d1627a 100644 --- a/config.yaml +++ b/config.yaml @@ -9,7 +9,7 @@ upstream: replace: '/$1/$2' - server: http://mirrors.ustc.edu.cn 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' - server: https://packages.microsoft.com/repos/code match: @@ -71,6 +71,18 @@ upstream: match: match: /(debian|debian-security)/(.*) 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: 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: timeout: 1h policies: - - match: '.*\.(rpm|deb)$' + - match: '.*\.(rpm|deb|apk)$' # rpm/deb/apk won't change, create only refresh-after: never - - match: '^/.*-security/.*' + - match: '^/.*-security/.*' # mostly ubuntu/debian security 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: type: local # ignored local: - path: /data # defaults to ./data + path: ./data # defaults to ./data accel: # example nginx config: