VanVan / ipfsProxyHTTP

InterPlanetary File System HTTP Proxy
MIT License
49 stars 13 forks source link

Use the gateway from ipfs website #3

Open Kcchouette opened 6 years ago

Kcchouette commented 6 years ago

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:

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.

Mikaela commented 5 years ago

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