Browse Source

更新配置文件

gitlink
Sydonian 1 year ago
parent
commit
b41ef4ce37
2 changed files with 11 additions and 12 deletions
  1. +9
    -10
      agent/internal/config/config.go
  2. +2
    -2
      common/assets/confs/agent.config.json

+ 9
- 10
agent/internal/config/config.go View File

@@ -13,16 +13,15 @@ import (
)

type Config struct {
ID int64 `json:"id"`
Local stgmodels.LocalMachineInfo `json:"local"`
GRPC *grpc.Config `json:"grpc"`
TempFileLifetime int `json:"tempFileLifetime"` // temp状态的副本最多能保持多久时间,单位:秒
Logger log.Config `json:"logger"`
RabbitMQ stgmq.Config `json:"rabbitMQ"`
IPFS ipfs.Config `json:"ipfs"`
DistLock distlock.Config `json:"distlock"`
Connectivity connectivity.Config `json:"connectivity"`
Downloader downloader.Config `json:"downloader"`
ID int64 `json:"id"`
Local stgmodels.LocalMachineInfo `json:"local"`
GRPC *grpc.Config `json:"grpc"`
Logger log.Config `json:"logger"`
RabbitMQ stgmq.Config `json:"rabbitMQ"`
IPFS ipfs.Config `json:"ipfs"`
DistLock distlock.Config `json:"distlock"`
Connectivity connectivity.Config `json:"connectivity"`
Downloader downloader.Config `json:"downloader"`
}

var cfg Config


+ 2
- 2
common/assets/confs/agent.config.json View File

@@ -3,13 +3,13 @@
"local": {
"nodeID": 1,
"localIP": "127.0.0.1",
"externalIP": "127.0.0.1"
"externalIP": "127.0.0.1",
"locationID": 1
},
"grpc": {
"ip": "127.0.0.1",
"port": 5010
},
"tempFileLifetime": 3600,
"logger": {
"output": "file",
"outputFileName": "agent",


Loading…
Cancel
Save