-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Local Gateway option #5649
Local Gateway option #5649
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I meant "shepherd" but this also works)
@Voker57, I'd appreciate your review if you have time.
f0c89bc
to
ef4b296
Compare
ef4b296
to
3a0d664
Compare
This does not include a lot of code from my PR that tries to make the API actually offline beyond stuff that readonly gateway uses, but it could work I guess if nobody tries to use it for something else, mine does not cover all cases either. Also, I don't like "negating" config option, it's a bit confusing. |
When adding options to the config, old nodes will use zero value for added fields, which in this case would break existing setups. |
We really need a comprehensive config system with layers. One has to exist... |
Also, convincing the read only HTTP API to not fetch blocks is going to be harder, we should probably just implement the context hints. |
@magik6k what's your opinion on this? Should we block this on context hints due to the read-only API (given that it's exposed on the gateway)? |
I don't see a nice way to work around this without context hints, so we can probably call this blocked for now. I'll try to put context hints near the top on my todo list though. |
SGTM. |
Isn't that handled by go-ipfs-config? Voker57/go-ipfs-config@9c41d63 |
1b3a975
to
1ea9e98
Compare
183a42f
to
972e4c9
Compare
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
License: MIT Signed-off-by: Iaroslav Gridin <voker57@gmail.com>
3491511
to
1c1a01c
Compare
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
1c1a01c
to
6cee21d
Compare
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
Rebased This covers the gateway + commands that support CoreAPI, few things are missed:
|
Nope, code in |
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small nits.
Now, on to naming... thinking about this a bit, FetchBlocks/NoFetchBlocks is kind of cryptic. Most users just care about content, not blocks. Maybe something like RetrieveContent
(download?)? I'm not sure but we should probably avoid using the word "blocks" if possible.
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
It's currently |
Ah. Fair enough. |
Should be ready (Depends on ipfs/iptb-plugins#11, ipfs/go-ipfs-config#19) |
Local Gateway option This commit was moved from ipfs/kubo@a142aec
This is an alternative / more contained version of #4150
((todo) some gx stuff still needs fixing)