diff --git a/production/nginx/server-common.conf b/production/nginx/server-common.conf index c5781692e..6ce34c2c3 100644 --- a/production/nginx/server-common.conf +++ b/production/nginx/server-common.conf @@ -89,6 +89,18 @@ location ~* ^/.+\..+\.(js|css) { try_files /$lang/$uri /en-US/$uri =404; expires 1y; } + +# unfurl preview +location /preview { + try_files /$lang/$uri $uri /en-US/$uri /en-US/index.html =404; + expires 10m; +} +# unfurl renderer +location ^~ /render { + proxy_pass $mempoolSpaceUnfurler; + expires 10m; +} + # catch-all for all URLs i.e. /address/foo /tx/foo /block/000 # cache 5 minutes since they change frequently location / {