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

Limit the size of files that IPFS will fetch from the P2P network. #2759

Open
bytemaster opened this issue May 24, 2016 · 5 comments
Open

Limit the size of files that IPFS will fetch from the P2P network. #2759

bytemaster opened this issue May 24, 2016 · 5 comments
Labels
help wanted Seeking public contribution on this issue kind/enhancement A net-new feature or improvement to an existing feature topic/gateway Topic gateway

Comments

@bytemaster
Copy link

The IPFS api is nice and simple, but can cause problems for people wanting to use it as a gateway to serve images. A request for the wrong hash could cause ipfsd to start fetching a ton of data that is not actually desired.

The solutions I have at the moment are to do ipfs file ls first and then fetch, but that requires me to set up my own middleware when it would be nice to have the daemon fetch it for me.

@RichardLitt RichardLitt added the kind/enhancement A net-new feature or improvement to an existing feature label May 25, 2016
@whyrusleeping whyrusleeping added help wanted Seeking public contribution on this issue topic/gateway Topic gateway labels Aug 19, 2016
@whyrusleeping
Copy link
Member

Hrm... adding some more gateway config to set an upper limit on request sizes might be useful. Could also throw in other options at the same time like timeouts, rate limits, etc

@ghost
Copy link

ghost commented Mar 7, 2017

And a completely readonly mode would be nice too.

@whyrusleeping
Copy link
Member

Yeah, purely readonly would be nice.

@magik6k
Copy link
Member

magik6k commented May 14, 2019

And a completely readonly mode would be nice too.

There is now Gateway.NoFetch option in config

@make-github-pseudonymous-again

Here is the link to the docs for Gateway.NoFetch.

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 kind/enhancement A net-new feature or improvement to an existing feature topic/gateway Topic gateway
Projects
None yet
Development

No branches or pull requests

5 participants