summaryrefslogtreecommitdiff
path: root/arch-mirror.home.eckner.net.conf
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-03-09 18:59:02 +0100
committerErich Eckner <git@eckner.net>2021-03-09 18:59:02 +0100
commitb5ae2750f3353c9d1de89a1e1e56bccf9116ed2e (patch)
tree7fc489c9eae1f22ee76945dffe56c49c0063c4f5 /arch-mirror.home.eckner.net.conf
parent4dafa8a90b52e0259d2e08233bc1dafd5b1c81e4 (diff)
downloadarch-mirror-b5ae2750f3353c9d1de89a1e1e56bccf9116ed2e.tar.xz
arch-mirror.home.eckner.net.conf: serve database files from cache servers, too (but not from cache, obviously)
Diffstat (limited to 'arch-mirror.home.eckner.net.conf')
-rw-r--r--arch-mirror.home.eckner.net.conf27
1 files changed, 26 insertions, 1 deletions
diff --git a/arch-mirror.home.eckner.net.conf b/arch-mirror.home.eckner.net.conf
index 2ee2dc6..98641b2 100644
--- a/arch-mirror.home.eckner.net.conf
+++ b/arch-mirror.home.eckner.net.conf
@@ -7,6 +7,32 @@ server {
server_name *.arch-mirror.home.eckner.net;
root /srv/http/arch-mirror;
autoindex on;
+
+ # 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;
+ }
}
server {
@@ -32,7 +58,6 @@ server {
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;