blob: 2dffe123acf371905b58a090829d50af7e64728c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
daemon off;
error_log /dev/stdout info;
events {
}
http {
access_log /dev/stdout;
upstream nar-herder {
server 127.0.0.1:8080;
}
server {
listen 8081;
location ~ \.narinfo$ {
proxy_pass http://nar-herder;
}
location ~ ^/nar/(.*)$ {
alias /home/chris/Projects/Guix/nar-herder/data/nar/$1;
}
location = /latest-database-dump {
proxy_pass http://nar-herder;
}
location ~ ^/internal/database/(.*)$ {
internal;
alias /home/chris/Projects/Guix/nar-herder/$1;
}
}
}
|