提交 75b235d0 作者: Łukasz Magiera

config docs: Move profile section to the top

License: MIT
Signed-off-by: 's avatarŁukasz Magiera <magik6k@gmail.com>
上级 ed881796
......@@ -4,6 +4,20 @@ The go-ipfs config file is a json document. It is read once at node instantiatio
either for an offline command, or when starting the daemon. Commands that execute
on a running daemon do not read the config file at runtime.
#### Profiles
Configuration profiles allow to tweak configuration quickly. Profiles can be
applied with `--profile` flag to `ipfs init` or with `ipfs config profile apply`
command.
- `server` profile
Recommended for nodes with public IPv4 address, disables host and content
discovery in local networks.
- `test` profile
Reduces external interference, useful for running ipfs in test environments.
Note that with these settings node won't be able to talk to the rest of the
network without manual bootstrap.
## Table of Contents
- [`Addresses`](#addresses)
......@@ -17,7 +31,6 @@ on a running daemon do not read the config file at runtime.
- [`Mounts`](#mounts)
- [`Reprovider`](#reprovider)
- [`Swarm`](#swarm)
- [`Profiles`](#profiles)
## `Addresses`
Contains information about various listener addresses to be used by this node.
......@@ -288,17 +301,3 @@ LowWater is the minimum number of connections to maintain.
HighWater is the number of connections that, when exceeded, will trigger a connection GC operation.
- `GracePeriod`
GracePeriod is a time duration that new connections are immune from being closed by the connection manager.
## Profiles
Configuration profiles allow to tweak configuration quickly. Profiles can be
applied with `--profile` flag to `ipfs init` or with `ipfs config profile apply`
command.
- `server` profile
Recommended for nodes with public IPv4 address, disables host and content
discovery in local networks.
- `test` profile
Reduces external interference, useful for running ipfs in test environments.
Note that with these settings node won't be able to talk to the rest of the
network without manual bootstrap.
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论