Merge pull request #2405 from mempool/wiz/add-nginx-unfurl-entrypoints

[ops] Add nginx entrypoints for unfurler daemon
This commit is contained in:
wiz 2022-08-27 14:17:56 +02:00 committed by GitHub
commit 1a756c5fa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 / {