Skip to content

Commit

Permalink
docs: clarify Gateway.ExposeRoutingAPI (#10337)
Browse files Browse the repository at this point in the history
* docs: clarify Gateway.ExposeRoutingAPI

Closes #10195

* Apply suggestions from code review

Co-authored-by: Daniel Norman <[email protected]>

---------

Co-authored-by: Henrique Dias <[email protected]>
Co-authored-by: Daniel Norman <[email protected]>
  • Loading branch information
3 people authored Feb 9, 2024
1 parent eb7f663 commit 68f9556
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -762,11 +762,15 @@ Type: `flag`

### `Gateway.ExposeRoutingAPI`

An optional flag to expose Kubo `Routing` system on the gateway port as a [Routing
V1](https://specs.ipfs.tech/routing/routing-v1/) endpoint. This only affects your
local gateway, at `127.0.0.1`.

This endpoint can be used by other Kubo instance, as illustrated in [`delegated_routing_v1_http_proxy_test.go`](https://github.com/ipfs/kubo/blob/master/test/cli/delegated_routing_v1_http_proxy_test.go).
An optional flag to expose Kubo `Routing` system on the gateway port
as an [HTTP `/routing/v1`](https://specs.ipfs.tech/routing/routing-v1/) endpoint on `127.0.0.1`.
Use reverse proxy to expose it on a different hostname.

This endpoint can be used by other Kubo instances, as illustrated in
[`delegated_routing_v1_http_proxy_test.go`](https://github.com/ipfs/kubo/blob/master/test/cli/delegated_routing_v1_http_proxy_test.go).
Kubo will filter out routing results which are not actionable, for example, all
graphsync providers will be skipped. If you need a generic pass-through, see
standalone router implementation named [someguy](https://github.com/ipfs/someguy).

Default: `false`

Expand Down

0 comments on commit 68f9556

Please sign in to comment.