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:
parent
31b021e629
commit
675fed2dca
1 changed files with 5 additions and 1 deletions
|
@ -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/;
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue