feat(ops/nixos/camden): Serve /blobs/ from /var/www/blobs

This directory is writeable by me and is intended to make it easy to
serve random blobs.
This commit is contained in:
Vincent Ambo 2020-02-11 20:54:50 +00:00
parent 31b021e629
commit 675fed2dca

View file

@ -142,7 +142,7 @@ in pkgs.lib.fix(self: {
'"http_user_agent":"$http_user_agent"' '"http_user_agent":"$http_user_agent"'
'}'; '}';
access_log /var/log/nginx_access.log json_combined; access_log syslog:server=unix:/dev/log json_combined;
''; '';
virtualHosts.homepage = { virtualHosts.homepage = {
@ -168,6 +168,10 @@ in pkgs.lib.fix(self: {
try_files $uri $uri.html $uri/ =404; try_files $uri $uri.html $uri/ =404;
} }
location /blobs/ {
alias /var/www/blobs/;
}
''; '';
}; };
}; };