2024-12-16 21:11:32 +08:00
upstream :
- server : https://mirrors.aliyun.com
2024-12-18 14:18:30 +08:00
match :
2024-12-19 10:58:53 +08:00
match : /(debian|ubuntu|ubuntu-releases|alpine|archlinux|kali|manjaro|msys2|almalinux|rocky|centos|centos-stream|centos-vault|fedora|epel|gnu)/(.*)
replace : '/$1/$2'
2024-12-16 21:11:32 +08:00
- server : http://mirrors.tencent.com
2024-12-18 14:18:30 +08:00
match :
2024-12-19 10:58:53 +08:00
match : /(debian|ubuntu|ubuntu-releases|alpine|archlinux|kali|manjaro|msys2|almalinux|rocky|centos|centos-stream|centos-vault|fedora|epel|gnu)/(.*)
replace : '/$1/$2'
2024-12-18 10:58:10 +08:00
- server : http://mirrors.ustc.edu.cn
2024-12-18 14:18:30 +08:00
match :
2025-01-09 23:19:05 +08:00
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)/(.*)
2024-12-19 10:58:53 +08:00
replace : '/$1/$2'
2024-12-16 21:11:32 +08:00
- server : https://packages.microsoft.com/repos/code
match :
match : /microsoft-code(.*)
replace : '$1'
2024-12-28 22:27:09 +08:00
- server : https://archive.ubuntu.com
match :
match : /ubuntu/(.*)
replace : /$1
2024-12-16 21:11:32 +08:00
- server : http://releases.ubuntu.com/
match :
match : /ubuntu-releases/(.*)
replace : /$1
2024-12-18 10:58:10 +08:00
- server : https://apt.releases.hashicorp.com
match :
match : /hashicorp-deb/(.*)
replace : /$1
2024-12-28 22:27:09 +08:00
- server : https://rpm.releases.hashicorp.com
match :
match : /hashicorp-rpm/(.*)
replace : /$1
2024-12-18 10:58:10 +08:00
- server : https://dl.google.com/linux/chrome
match :
match : /google-chrome/(.*)
replace : /$1
- server : https://pkgs.tailscale.com/stable
match :
match : /tailscale/(.*)
replace : /$1
2024-12-18 14:18:30 +08:00
- server : http://update.cs2c.com.cn:8080
match :
match : /kylinlinux/(.*)
replace : /$1
2024-12-28 22:27:09 +08:00
- server : http://cdn.jsdelivr.net
match :
match : /jsdelivr/(.*)
replace : /$1
- server : https://dl-cdn.alpinelinux.org
match :
match : /alpine/(.*)
replace : /$1
- server : https://deb.debian.org/debian
match :
match : /debian/(.*)
replace : /$1
- server : https://repo.almalinux.org
match :
match : /almalinux/(.*)
replace : /almalinux/$1
- server : https://dl.rockylinux.org/pub/rocky
match :
match : /rocky/(.*)
replace : /$1
- server : https://dl.fedoraproject.org/pub/epel
match :
match : /epel/(.*)
replace : /$1
- server : http://deb.debian.org
match :
match : /(debian|debian-security)/(.*)
replace : /$1/$2
2025-01-09 23:19:05 +08:00
- 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
2025-01-21 15:18:07 +08:00
allowed-redirect : "^https?://cf-builds.garudalinux.org/.*/chaotic-aur/.*$"
2024-12-16 21:11:32 +08:00
misc :
2024-12-18 10:58:10 +08:00
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
# chunk-bytes: 1048576 # 1024*1024
2024-12-16 21:11:32 +08:00
2024-12-19 00:03:22 +08:00
cache :
timeout : 1h
policies :
2025-01-09 23:19:05 +08:00
- match : '.*\.(rpm|deb|apk)$' # rpm/deb/apk won't change, create only
2024-12-19 01:27:22 +08:00
refresh-after : never
2025-01-09 23:19:05 +08:00
- match : '^/.*-security/.*' # mostly ubuntu/debian security
2024-12-28 22:27:09 +08:00
refresh-after : 1h
2025-01-09 23:19:05 +08:00
- 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
2024-12-19 00:03:22 +08:00
2024-12-16 21:11:32 +08:00
storage :
type : local # ignored
local :
2025-01-09 23:19:05 +08:00
path : ./data # defaults to ./data
2024-12-18 17:16:55 +08:00
accel :
# example nginx config:
## location /i {
## internal;
## alias /path/to/data;
## }
## location / {
## proxy_pass 127.0.0.1:8881;
## proxy_set_header X-Accel-Path /i;
## }
##
# enable-by-header: "X-Accel-Path"