fix(ops/www): Strip .html from TVL blog post URLs

Change-Id: I4d1f9284ec004931c07c04d614b01f28eedea508
This commit is contained in:
Vincent Ambo 2021-11-30 13:56:10 +03:00
parent e61b50baf9
commit 68d1f834a3

View file

@ -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;
}
'';
};
};