From 004dcebc196bc905a75883cb11c3c570e81db7a1 Mon Sep 17 00:00:00 2001 From: wiz Date: Sat, 27 Aug 2022 14:17:17 +0200 Subject: [PATCH] [ops] Add nginx entrypoints for unfurler daemon --- production/nginx/server-common.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 / {