ops: Tweak nginx config for gone paths and render expires

This commit is contained in:
wiz 2023-08-23 01:09:11 +09:00
parent 6c7d33f681
commit b180fe694f
No known key found for this signature in database
GPG Key ID: A394E332255A6173

View File

@ -97,6 +97,14 @@ location ~* ^/.+\..+\.(js|css)$ {
expires 1y;
}
# old stuff is gone
location /explorer/ {
return 410;
}
location /sitemap/ {
return 410;
}
# unfurl preview
location /preview {
try_files /$lang/$uri $uri /en-US/$uri /en-US/index.html =404;
@ -105,7 +113,6 @@ location /preview {
# unfurl renderer
location ^~ /render {
try_files /dev/null @mempool-space-unfurler;
expires 10m;
}
# unfurl handler
location /unfurl/ {