From 675fed2dcada78613d5cfad036f1bebd65dd542c Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 11 Feb 2020 20:54:50 +0000 Subject: [PATCH] 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. --- ops/nixos/camden/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ops/nixos/camden/default.nix b/ops/nixos/camden/default.nix index 77f18d3cf..e809446bb 100644 --- a/ops/nixos/camden/default.nix +++ b/ops/nixos/camden/default.nix @@ -142,7 +142,7 @@ in pkgs.lib.fix(self: { '"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 = { @@ -168,6 +168,10 @@ in pkgs.lib.fix(self: { try_files $uri $uri.html $uri/ =404; } + + location /blobs/ { + alias /var/www/blobs/; + } ''; }; };