DAL: add NGINX template for serving slot_store + fix directory permissions
What
This MR provides a minimal, production-ready NGINX configuration to serve the contents of a DAL node's slot_store directory over HTTP.
It also adjusts the file system permissions to ensure that group and others have appropriate read access (+r) on the relevant store directories, allowing NGINX to serve the files even when running under a different user than the DAL node.
Why
This setup enables DAL nodes using the --http-backup option to retrieve missing slots from external servers, which is needed for Etherlink DAL data retrievability
Examples:
(Ask me for the actual host on Slack
- Fetch a single slot with wget:
wget http://<host>/v0/slots/by_published_level/12552092_30_126944
- Fetch a single slot with wget:
curl http://<host>/v0/slots/by_published_level/12552092_30_126944 --output 12552092_30_126944
Mirror the full store locally:
wget --mirror \
--no-parent \
--no-host-directories \
--cut-dirs=3 \
--directory-prefix=store/slot_store \
--accept-regex '[0-9]+_[0-9]+_[0-9]+' \
--reject "index.html*" \
http://<host>/v0/slots/by_published_level/