mirror of
https://github.com/mempool/mempool.git
synced 2025-01-19 05:34:03 +01:00
ops: Tweak nginx config for gone paths and render expires
This commit is contained in:
parent
6c7d33f681
commit
b180fe694f
@ -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/ {
|
||||
|
Loading…
Reference in New Issue
Block a user