ipfsProxyHTTP icon indicating copy to clipboard operation
ipfsProxyHTTP copied to clipboard

Use the gateway from ipfs website

Open Kcchouette opened this issue 7 years ago • 1 comments

Hello

Instead of hard-linking gateway in this project, I think it would be better to use the one from IPFS website (and so contribute to only one file) instead of gateway.txt:

  • https://raw.githubusercontent.com/ipfs/public-gateway-checker/master/gateways.json

So we can think of doing a script to wget this file something like that:

wget "https://cdn.rawgit.com/ipfs/public-gateway-checker/master/gateways.json"
sed -i '1d' gateways.json
sed -i '$ d' gateways.json
...

Or by integrating json file in your project, and just by adding //ipfs.io/ipfs/@ at the beginning of the file.

Kcchouette avatar Jun 03 '18 10:06 Kcchouette

Or would there be any sense in that being a submodule?

Mikaela avatar May 27 '19 14:05 Mikaela