filecoin-saturn / L1-node

Filecoin Saturn L1 Node • The edge cache layer of Filecoin's decentralized CDN 🪐
Other
140 stars 50 forks source link

Add a base L1 bifrost docker compose #418

Closed joaosa closed 1 year ago

joaosa commented 1 year ago

Add a basic docker compose file so the bifrost and L1 setup is reproducible locally.

  1. Clone the https://github.com/ipfs/bifrost-gateway into ../../../ipfs/bifrost-gateway (relative to this project)

  2. Make sure to generate the L1 certs for localhost (I recommend mkcert) with:

cd $HOME/shared/ssl
mkcert -key-file node.key -cert-file node.crt localhost
  1. cd integration && docker compose up

  2. Fire requests to bifrost (e.g.)

curl -v 127.0.0.1:8081/ipfs/$CID -r 0-1048575 # range request
curl -v 127.0.0.1:8081/ipfs/$CID # regular block request
aarshkshah1992 commented 1 year ago

@joaosa Why do we need those L1 certs on localhost ?

joaosa commented 1 year ago

@joaosa Why do we need those L1 certs on localhost ?

Because Caboose attempts to use the L1's HTTPS endpoint. If we can configure it to use HTTP then this gets simpler