diff options
author | Erich Eckner <git@eckner.net> | 2020-10-10 23:01:43 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-10-10 23:01:43 +0200 |
commit | 95bb242a2241e9cbd2e35b00358de66b216e2e1d (patch) | |
tree | 0701cb0ab7ecd1b9a8bba93426b5dad78f28ecc8 /arch-mirror.home.eckner.net.conf | |
parent | b8dc10d91af471bc07a8524643d6543991b5173d (diff) | |
download | arch-mirror-95bb242a2241e9cbd2e35b00358de66b216e2e1d.tar.xz |
arch-mirror.home.eckner.net.conf: archlinuxewe has new layout
Diffstat (limited to 'arch-mirror.home.eckner.net.conf')
-rw-r--r-- | arch-mirror.home.eckner.net.conf | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/arch-mirror.home.eckner.net.conf b/arch-mirror.home.eckner.net.conf index 56ee3da..76c0fa6 100644 --- a/arch-mirror.home.eckner.net.conf +++ b/arch-mirror.home.eckner.net.conf @@ -24,15 +24,15 @@ server { autoindex on; # Requests for package db, signature files and files db should redirect upstream without caching - location ~ /archlinuxewe/os/[^/]+/[^/]+\.(db|sig|files)$ { - proxy_pass http://mirrorsewe$request_uri; + location ~ /archlinuxewe/os/([^/]+)/([^/]+\.(db|sig|files))$ { + proxy_pass http://mirrorsewe/os/$1/$2; } location ~ /releng/os/x86_64/([^/]+\.(db|sig|files))$ { proxy_pass http://mirrors32/x86_64/releng/$1; } location ~ ^/([^/]+)/archlinuxewe/([^/]+\.(db|sig|files))$ { - proxy_pass http://mirrorsewe/archlinuxewe/os/$1/$2; + proxy_pass http://mirrorsewe/os/$1/$2; } location ~ /x86_64/[^/]+\.(db|sig|files)$ { proxy_pass http://mirrors$request_uri; @@ -46,11 +46,11 @@ server { # Requests for actual packages should be served directly from cache if available. # If not available, retrieve and save the package from an upstream mirror. - location ~ /archlinuxewe/os/[^/]+/[^/]+\.tar\.(xz|zst)$ { + location ~ /archlinuxewe/os/([^/]+)/([^/]+\.tar\.(xz|zst))$ { try_files $uri @caches @pkg_mirrorewe; } location ~ ^/([^/]+)/archlinuxewe/([^/]+\.tar\.(xz|zst))$ { - try_files /archlinuxewe/os/$1/$2 @caches_reordered @pkg_mirrorewe_reordered; + try_files /archlinuxewe/os/$1/$2 @caches_reordered @pkg_mirrorewe; } location ~ ^/(releng)/os/([^/]+)/([^/]+\.tar\.(xz|zst))$ { try_files $uri @caches @pkg_mirror32_reordered; @@ -116,14 +116,7 @@ server { proxy_redirect off; proxy_store_access user:rw group:rw all:r; proxy_next_upstream error timeout http_404; - proxy_pass http://mirrorsewe$request_uri; - } - location @pkg_mirrorewe_reordered { - proxy_store on; - proxy_redirect off; - proxy_store_access user:rw group:rw all:r; - proxy_next_upstream error timeout http_404; - proxy_pass http://mirrorsewe/archlinuxewe/os/$1/$2; + proxy_pass http://mirrorsewe/os/$1/$2; } } |