Updated pkg-cache to handle db and sig files properly

This commit is contained in:
Actaeus Curabitur 2022-09-01 05:35:20 -05:00
parent 2d54f2346d
commit 14fb9ccc26
3 changed files with 2320 additions and 372 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -27,12 +27,16 @@ server {
proxy_read_timeout 300;
proxy_connect_timeout 300;
location /archlinux/aur-local {
location ~ aur-local {
root /mnt/pkgs;
}
location ~ \.(db|sig) {
proxy_pass https://mirrors.kernel.org$request_uri;
}
location / {
proxy_pass http://repo.miserver.it.umich.edu/;
proxy_pass https://mirrors.kernel.org;
proxy_cache pkg-cache; # This directive should match the keys_zone option
proxy_cache_revalidate on;
proxy_cache_min_uses 0;