From e046f8a756aa24942f512b352e87dfe78fa89470 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Fri, 22 Apr 2022 14:55:51 +0100 Subject: Stop hardcoding some filenames in the sample NGinx configuration --- nginx/conf/nginx.conf | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'nginx') diff --git a/nginx/conf/nginx.conf b/nginx/conf/nginx.conf index 2dffe12..9a4d6e6 100644 --- a/nginx/conf/nginx.conf +++ b/nginx/conf/nginx.conf @@ -19,15 +19,21 @@ http { } location ~ ^/nar/(.*)$ { - alias /home/chris/Projects/Guix/nar-herder/data/nar/$1; + proxy_pass http://nar-herder; } location = /latest-database-dump { proxy_pass http://nar-herder; } + location ~ ^/internal/database/(.*)$ { internal; - alias /home/chris/Projects/Guix/nar-herder/$1; + alias $1; + } + + location ~ ^/internal/nar/(.*)$ { + internal; + alias storage/nar/$1; } } } -- cgit v1.2.3