diff --git a/ops/modules/www/tvl.fyi.nix b/ops/modules/www/tvl.fyi.nix index cea29adbe..cd7c496a9 100644 --- a/ops/modules/www/tvl.fyi.nix +++ b/ops/modules/www/tvl.fyi.nix @@ -25,6 +25,14 @@ location ~* \.(webp|woff2)$ { add_header Cache-Control "public, max-age=31536000"; } + + location /blog { + if ($request_uri ~ ^/(.*)\.html$) { + return 302 /$1; + } + + try_files $uri $uri.html $uri/ =404; + } ''; }; };