diff options
author | Erich Eckner <git@eckner.net> | 2020-11-17 13:15:07 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-11-17 13:15:07 +0100 |
commit | 1f74c67f2b0223d6836aa1b6d6472fdafe81e359 (patch) | |
tree | ce61ce9dca87e54fbd5729d60f93d2cf86ff6f0f | |
parent | 17f1bed26307e926ef8d6a837a392b982022822e (diff) | |
download | arch-mirror-1f74c67f2b0223d6836aa1b6d6472fdafe81e359.tar.xz |
arch-mirror.home.eckner.net.conf: also round-robin through failing servers for db and co
-rw-r--r-- | arch-mirror.home.eckner.net.conf | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch-mirror.home.eckner.net.conf b/arch-mirror.home.eckner.net.conf index 7de1d5e..4a993cd 100644 --- a/arch-mirror.home.eckner.net.conf +++ b/arch-mirror.home.eckner.net.conf @@ -25,22 +25,28 @@ server { # Requests for package db, signature files and files db should redirect upstream without caching location ~ /archlinuxewe/os/([^/]+)/([^/]+\.(db|sig|files))$ { + proxy_next_upstream error timeout http_404; proxy_pass http://mirrorsewe/os/$1/$2; } location ~ /releng/os/x86_64/([^/]+\.(db|sig|files))$ { + proxy_next_upstream error timeout http_404; proxy_pass http://mirrors32/x86_64/releng/$1; } location ~ ^/([^/]+)/archlinuxewe/([^/]+\.(db|sig|files))$ { + proxy_next_upstream error timeout http_404; proxy_pass http://mirrorsewe/os/$1/$2; } location ~ /x86_64/[^/]+\.(db|sig|files)$ { + proxy_next_upstream error timeout http_404; proxy_pass http://mirrors$request_uri; } location ~ /(i[46]86|pentium4)/[^/]+/[^/]+\.(db|sig|files)$ { + proxy_next_upstream error timeout http_404; proxy_pass http://mirrors32$request_uri; } location ~ /(arm(|v6h|v7h)|aarch64)/[^/]+/[^/]+\.(db|sig|files)$ { + proxy_next_upstream error timeout http_404; proxy_pass http://mirrorsarm$request_uri; } |