about summary refs log tree commit diff
path: root/ops/modules/www/tvl.fyi.nix
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-12-01T20·41+0300
committerVincent Ambo <mail@tazj.in>2021-12-01T20·41+0300
commit433f0ae5cd43a2d3affb6f14bc5b9b9b19a6e37f (patch)
treeef2485555fd07305e2cf7f1c7b1406a010ebeb85 /ops/modules/www/tvl.fyi.nix
parent5b46c6c23467391f03f073658b22f3626e36e68c (diff)
fix(ops/www): Redirect tvl.fyi/blog -> tvl.fyi r/3131
The blog index page is at the root and people may manually edit the
URL.

Change-Id: I6cdaaaee6223524a9e950584379cfac34f8be160
Diffstat (limited to 'ops/modules/www/tvl.fyi.nix')
-rw-r--r--ops/modules/www/tvl.fyi.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/ops/modules/www/tvl.fyi.nix b/ops/modules/www/tvl.fyi.nix
index cd7c496a90e0..f422bb84878a 100644
--- a/ops/modules/www/tvl.fyi.nix
+++ b/ops/modules/www/tvl.fyi.nix
@@ -33,6 +33,10 @@
 
           try_files $uri $uri.html $uri/ =404;
         }
+
+        location = /blog {
+          return 302 /;
+        }
       '';
     };
   };