diff options
author | Christopher Baines <mail@cbaines.net> | 2022-04-22 14:55:51 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2022-04-22 14:55:51 +0100 |
commit | e046f8a756aa24942f512b352e87dfe78fa89470 (patch) | |
tree | 71bb8bb25bc901793f1ac7c71e516d3aab05e39a /nginx | |
parent | 375532bac733f1e539c489095916be957d85a278 (diff) | |
download | nar-herder-e046f8a756aa24942f512b352e87dfe78fa89470.tar nar-herder-e046f8a756aa24942f512b352e87dfe78fa89470.tar.gz |
Stop hardcoding some filenames in the sample NGinx configuration
Diffstat (limited to 'nginx')
-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; } } } |