Scripts and config for caching elements in a tezos node, to improve performance
To use the files generated by this script
server_name mainnet-cached.tzconnect.berlin;
location @proxy {
proxy_pass http://localhost:10734;
}
location ~ ^/chains/main/blocks/(?<block>[0-9]+)$ {
root /home/newby/chains/main/blocks/;
try_files /$block.json @proxy;
}
location / {
proxy_pass http://localhost:10734;
}