Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leverage IPFS nodes for download #31

Open
lidel opened this issue Aug 10, 2020 · 1 comment
Open

Leverage IPFS nodes for download #31

lidel opened this issue Aug 10, 2020 · 1 comment
Labels
help wanted Seeking public contribution on this issue

Comments

@lidel
Copy link
Member

lidel commented Aug 10, 2020

Downloading from dist.ipfs.io may fail due to routing or service issues.
It does not leverage the fact that data could be downloaded from a local IPFS node, or alternative gateway.

Switching download logic to something like ipfs-or-gateway should mitigate issues described in https://github.com/ipfs/npm-go-ipfs-dep/issues/37, where our gateway broke CI for various projects.

The idea

  • introduce an implicit (but configurable) list of gateways to try
  • try downloading from each of them, in order, and fail only when all of them fail
  • default list should work for most of people: [default local, default public]
    • try local IPFS gateway first (default: http://127.0.0.1:8080/ipns/dist.ipfs.io)
    • if that fails, fallback to a public one (default: https://ipfs.io/ipns/dist.ipfs.io)
  • allow people to provide their own list (to use own nodes, or trusted public ones such as cloudflare)

@aphelionz would that help?

@lidel lidel changed the title Leverage local and public gateways Leverage IPFS nodes for download Aug 10, 2020
@aphelionz
Copy link

Seems good, let's give it a shot!

@lidel lidel added the help wanted Seeking public contribution on this issue label Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Seeking public contribution on this issue
Projects
None yet
Development

No branches or pull requests

2 participants