diff options
author | Christopher Baines <mail@cbaines.net> | 2021-12-11 10:27:24 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2021-12-12 16:35:38 +0000 |
commit | f9ff69e1c79f024ed188ad51642cca443aedfee2 (patch) | |
tree | 609b37ff8d6fc3d557d339a67ba6641522b0a977 /nginx/conf/nginx.conf | |
parent | 7e280ca951e8ffa7c86224843075e65266911617 (diff) | |
download | nar-herder-f9ff69e1c79f024ed188ad51642cca443aedfee2.tar nar-herder-f9ff69e1c79f024ed188ad51642cca443aedfee2.tar.gz |
Get most of the functionality sort of working
At least working enough to start trying this out, and finding the
problems.
Diffstat (limited to 'nginx/conf/nginx.conf')
-rw-r--r-- | nginx/conf/nginx.conf | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/nginx/conf/nginx.conf b/nginx/conf/nginx.conf new file mode 100644 index 0000000..2dffe12 --- /dev/null +++ b/nginx/conf/nginx.conf @@ -0,0 +1,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; + } + } +} |