diff options
-rw-r--r-- | nginx/conf/nginx.conf | 10 |
1 files changed, 8 insertions, 2 deletions
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; } } } |