-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from ipfs-force-community/docs/elvindu/add-de…
…scription-for-config update config description / 更新config注释
- Loading branch information
Showing
3 changed files
with
54 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# 配置文件解析 | ||
|
||
默认在~/.sophon-gateway/config.toml。 | ||
|
||
```toml | ||
[API] | ||
ListenAddress = "/ip4/127.0.0.1/tcp/45132" # 本地组件wallet和damocles-manager通过长连接和gateway保持通信 | ||
|
||
[Auth] | ||
Token = "" | ||
URL = "http://127.0.0.1:8989" | ||
|
||
[Metrics] | ||
Enabled = false | ||
|
||
[Metrics.Exporter] | ||
Type = "prometheus" # 两种类型,Graphite或者Prometheus | ||
|
||
[Metrics.Exporter.Graphite] | ||
Host = "127.0.0.1" | ||
Namespace = "gateway" | ||
Port = 4569 | ||
ReportingPeriod = "10s" | ||
|
||
[Metrics.Exporter.Prometheus] | ||
EndPoint = "/ip4/0.0.0.0/tcp/4569" | ||
Namespace = "gateway" | ||
Path = "/debug/metrics" | ||
RegistryType = "define" | ||
ReportingPeriod = "10s" | ||
|
||
[RateLimit] | ||
#redis地址,用于记录用户访问的次数。如果要开启对某个user的访问限速,还需要`auth` 服务同时设置`sophon-auth user rate-limit`命令。 | ||
Redis = "27.0.0.1:6379" | ||
|
||
[Trace] | ||
JaegerEndpoint = "localhost:6831" | ||
JaegerTracingEnabled = false | ||
ProbabilitySampler = 1.0 | ||
ServerName = "sophon-gateway" | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters