aboutsummaryrefslogtreecommitdiff
path: root/nginx
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2022-04-22 14:55:51 +0100
committerChristopher Baines <mail@cbaines.net>2022-04-22 14:55:51 +0100
commite046f8a756aa24942f512b352e87dfe78fa89470 (patch)
tree71bb8bb25bc901793f1ac7c71e516d3aab05e39a /nginx
parent375532bac733f1e539c489095916be957d85a278 (diff)
downloadnar-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.conf10
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;
}
}
}