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/(.*)$ { proxy_pass http://nar-herder; } location = /latest-database-dump { proxy_pass http://nar-herder; } location ~ ^/internal/database/(.*)$ { internal; alias $1; } location ~ ^/internal/nar/(.*)$ { internal; alias storage/nar/$1; } } }