OriginProtocol / dshop

Origin Dshop - launch your own decentralized store
https://www.originprotocol.com/dshop
MIT License
138 stars 87 forks source link

Add private IPFS node to Dshop container #55

Open nick opened 4 years ago

nick commented 4 years ago

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)

mikeshultz commented 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.

nick commented 4 years ago

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