feat: add back controller.api.gatewayHost
and controller.api.gatewayPort
or similar
#831
Labels
effort/hours
Estimated to take one or several hours
exp/intermediate
Prior experience is likely helpful
help wanted
Seeking public contribution on this issue
kind/enhancement
A net-new feature or improvement to an existing feature
P1
High: Likely tackled by core team if no one steps up
status/in-progress
In progress
topic/devexp
Developer Experience
With the latest update from #823 we no longer have the ability to get the listening ipfs gateway host and port from the instantiated kubo node.
this forces consumers to do handle passing around port/host config passed to
createNode
or parsing config options from the createdKuboNode
using https://github.com/multiformats/js-multiaddr-to-uriWe shouldn't need to do this on the consumer side because ipfsd-ctl and kubo-rpc-client should both have the gateway URL readily accessible.
We should expose this on the
await node.info()
result.Note: this used to be done by reading stdout:
js-ipfsd-ctl/src/ipfsd-daemon.ts
Line 250 in 6e0d0b5
The text was updated successfully, but these errors were encountered: