about summary refs log tree commit diff
path: root/ops/nixos/www/tazj.in.nix
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-04-03T11·40+0200
committertazjin <mail@tazj.in>2021-04-03T11·44+0000
commit5111d9d4939bbbc97dfc8b0b1711ab1dcf884c41 (patch)
treedc5b56db68ef923bd9c7e708311c3741c6c13bd7 /ops/nixos/www/tazj.in.nix
parent23d8e89f03f232e049cd0886eaafa5a4f4d61b27 (diff)
feat(www/tazj.in): Add a temporary route for serving static blobs r/2411
Until I come up with a better idea.

Change-Id: Ie44cae4c2df264cbe1a70f5ebcca814262dd2800
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2771
Reviewed-by: tazjin <mail@tazj.in>
Tested-by: BuildkiteCI
Diffstat (limited to 'ops/nixos/www/tazj.in.nix')
-rw-r--r--ops/nixos/www/tazj.in.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/ops/nixos/www/tazj.in.nix b/ops/nixos/www/tazj.in.nix
index 8ed3585cdb52..7d658a5ec4c1 100644
--- a/ops/nixos/www/tazj.in.nix
+++ b/ops/nixos/www/tazj.in.nix
@@ -23,6 +23,11 @@
 
           try_files $uri $uri.html $uri/ =404;
         }
+
+        # Temporary place for serving static files.
+        location /blobs/ {
+          alias /var/lib/tazjins-blobs/;
+        }
       '';
     };