mirror of
https://github.com/janoside/btc-rpc-explorer.git
synced 2026-08-13 12:33:13 +02:00
- major memory usage improvements for loading txs with inputs: appropriate input-vouts are now extracted from their source txs and summarized (asm/hex are dropped since they're never used), rather than keeping the whole of input-txs in memory; this dramatically improves memory usage (and avoids crashing due to OOMEs), particularly when loading txs with "heavy" inputs (i.e. many, large input txs); this is relevant for /tx/TXID pages, and particularly important for the new /block-analysis pages which necessarily load many, many txs - cache-key prefixes for coreApi's caching functionality: to avoid loading old-format data from a persistent cache and barfing on it - several important code-reuse fixes: there were almost-duplicate chunks of code that were essentially calls to getRawTransactionWithInputs - now just use that function - new minor /admin page for showing memory usage - on homepage Network Summary: show full tx count (non abbreviated) - use new domain everywhere
32 lines
824 B
Text
32 lines
824 B
Text
## http://domain.com redirects to https://domain.com
|
|
server {
|
|
server_name explorer.btc21.org;
|
|
listen 80;
|
|
#listen [::]:80 ipv6only=on;
|
|
|
|
location / {
|
|
return 301 https://explorer.btc21.org$request_uri;
|
|
}
|
|
}
|
|
|
|
## Serves httpS://domain.com
|
|
server {
|
|
server_name explorer.btc21.org;
|
|
listen 443 ssl http2;
|
|
#listen [::]:443 ssl http2 ipv6only=on;
|
|
|
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
|
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
|
|
ssl_prefer_server_ciphers on;
|
|
ssl_session_cache shared:SSL:10m;
|
|
ssl_dhparam /etc/ssl/certs/dhparam.pem;
|
|
|
|
location / {
|
|
proxy_pass http://localhost:3002;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
proxy_set_header Host $host;
|
|
proxy_cache_bypass $http_upgrade;
|
|
}
|
|
}
|