From b180fe694fde8f04a6dc7d5d93931a478a5053dc Mon Sep 17 00:00:00 2001 From: wiz Date: Wed, 23 Aug 2023 01:09:11 +0900 Subject: [PATCH] ops: Tweak nginx config for gone paths and render expires --- production/nginx/server-common.conf | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/production/nginx/server-common.conf b/production/nginx/server-common.conf index 339092097..cb6a6153d 100644 --- a/production/nginx/server-common.conf +++ b/production/nginx/server-common.conf @@ -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/ {