Open nick opened 4 years ago
Why not just pull this from the already configured ipfsApi
or ipfsGateway
?
Also, might be best to see how #50 turns out. Might inform this issue.
Ah yea good point, we can just do:
curl -X POST "https://ipfs-prod.ogn.app/api/v0/get?arg=HASH&output=data.tar.gz&archive=true&compress=true" --output data.tar.gz
We need to be able to sync data to the DSHOP_CACHE from IPFS. Can probably restrict the daemon to only connect to a few peers to limit unnecessary traffic, eg the Origin IPFS server + Pinata
Could either use a separate go-ipfs process, or us js-ipfs in the backend process itself (which we already have as a dependency)