[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: nginx: mirror: Match both /nar and /guix/nar.
From: |
Ludovic Courtès |
Subject: |
02/02: nginx: mirror: Match both /nar and /guix/nar. |
Date: |
Wed, 22 Mar 2017 17:44:01 -0400 (EDT) |
civodul pushed a commit to branch master
in repository maintenance.
commit fb9fcce75c7ebbe62fc429a2c258aebd03660a2f
Author: Ludovic Courtès <address@hidden>
Date: Wed Mar 22 22:33:38 2017 +0100
nginx: mirror: Match both /nar and /guix/nar.
* hydra/nginx/mirror-locations.conf: Use a regexp match for the /nar
location block.
---
hydra/nginx/mirror-locations.conf | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hydra/nginx/mirror-locations.conf
b/hydra/nginx/mirror-locations.conf
index e1f8a59..6dfb760 100644
--- a/hydra/nginx/mirror-locations.conf
+++ b/hydra/nginx/mirror-locations.conf
@@ -25,7 +25,8 @@ location = /nix-cache-info {
proxy_ignore_headers Set-Cookie;
}
-location /nar/ {
+# Match both /nar and /guix/nar.
+location ~ /nar/ {
proxy_pass http://hydra.gnu.org;
client_body_buffer_size 256k;