docs: update Routing config

Updated docs to reflect that Routing is not a child of Discovery
Ref. https://github.com/ipfs/go-ipfs-config/blob/664ccd976e969e78364720ec5f1d1544bc99305f/routing.go#L6

License: MIT
Signed-off-by: 's avatarMarcin Rataj <lidel@lidel.org>
上级 bfd4ec5c
...@@ -63,6 +63,7 @@ Available profiles: ...@@ -63,6 +63,7 @@ Available profiles:
- [`Bootstrap`](#bootstrap) - [`Bootstrap`](#bootstrap)
- [`Datastore`](#datastore) - [`Datastore`](#datastore)
- [`Discovery`](#discovery) - [`Discovery`](#discovery)
- [`Routing`](#routing)
- [`Gateway`](#gateway) - [`Gateway`](#gateway)
- [`Identity`](#identity) - [`Identity`](#identity)
- [`Ipns`](#ipns) - [`Ipns`](#ipns)
...@@ -214,13 +215,28 @@ Default: `true` ...@@ -214,13 +215,28 @@ Default: `true`
- `Interval` - `Interval`
A number of seconds to wait between discovery checks. A number of seconds to wait between discovery checks.
- `Routing`
## `Routing`
Contains options for content routing mechanisms.
- `Type`
Content routing mode. Can be overridden with daemon `--routing` flag. Content routing mode. Can be overridden with daemon `--routing` flag.
Valid modes are: Valid modes are:
- `dht` (default) - `dht` (default)
- `dhtclient` - `dhtclient`
- `none` - `none`
**Example:**
```json
{
"Routing": {
"Type": "dhtclient"
}
}
```
## `Gateway` ## `Gateway`
Options for the HTTP gateway. Options for the HTTP gateway.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论