You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IpfsService was recently changed (#821 ) to perform a HEAD request on the IPFS gateway's public URL. Because of this, the (external) ipfsGatewayUrl needs to be reachable by the content-publishing service, which theoretically might not always be the case depending on routing setup.
Similarly, content-watcher needs some attention as well. Currently it uses the IPFS node API to fetch content by CID; however, that requires having access to a private node--technically, running content-watcher should only require a public gateway. In which case, we would probably change content-watcher to also use ipfsGatewayUrl, which would mean it would need to be resolvable by content-watcher as well, so the same question applies.
TL;DR:
content-publisher needs BOTH (or the same) a publicly-resolvable IPFS Gateway URL AND an internally-resolvable IPFS Gateway URL
content-watcher needs ONLY an internally-resolvable IPFS Gateway URL
Suggested approach:
Add optional IPFS config parameter internalGatewayUrl, templated same as gatewayUrl. If configured, this will be used for internal service access to the IPFS HTTP gateway.
Change content-watcher to use gateway interface rather than RPC API following this approach.
Change IpfsService to use internal gateway if configured for existsInLocalGateway()
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
IpfsService was recently changed (#821 ) to perform a
HEAD
request on the IPFS gateway's public URL. Because of this, the (external)ipfsGatewayUrl
needs to be reachable by the content-publishing service, which theoretically might not always be the case depending on routing setup.Similarly, content-watcher needs some attention as well. Currently it uses the IPFS node API to fetch content by CID; however, that requires having access to a private node--technically, running content-watcher should only require a public gateway. In which case, we would probably change content-watcher to also use ipfsGatewayUrl, which would mean it would need to be resolvable by content-watcher as well, so the same question applies.
TL;DR:
content-publisher
needs BOTH (or the same) a publicly-resolvable IPFS Gateway URL AND an internally-resolvable IPFS Gateway URLcontent-watcher
needs ONLY an internally-resolvable IPFS Gateway URLSuggested approach:
internalGatewayUrl
, templated same asgatewayUrl
. If configured, this will be used for internal service access to the IPFS HTTP gateway.content-watcher
to use gateway interface rather than RPC API following this approach.IpfsService
to use internal gateway if configured forexistsInLocalGateway()
The text was updated successfully, but these errors were encountered: