diff --git a/gala-ops/server/config.yml.templete b/gala-ops/server/config.yml.templete index 63d7de830fc3ab10a48e90fb5160e59e2f491d8b..1f329c53f5feb721883005c36d6d9fa357b8a816 100644 --- a/gala-ops/server/config.yml.templete +++ b/gala-ops/server/config.yml.templete @@ -4,3 +4,5 @@ grafana: passwd: "" http: addr: "0.0.0.0:7888" +PilotGo: + addr: "localhost:8889" diff --git a/gala-ops/server/config/config.go b/gala-ops/server/config/config.go index 55f875a177314c02671417335d4cdf8045ccd7f7..7c45146011e3aca0db232275e214c987c8d7a5b3 100644 --- a/gala-ops/server/config/config.go +++ b/gala-ops/server/config/config.go @@ -13,13 +13,19 @@ type GrafanaConf struct { User string `yaml:"user"` Passwd string `yaml:"passwd"` } + type HttpConf struct { Addr string `yaml:"addr"` } +type PilotGoConf struct { + Addr string `yaml:"addr"` +} + type ServerConfig struct { - Grafana GrafanaConf `yaml:"grafana"` - Http HttpConf `yaml:"http"` + Grafana *GrafanaConf `yaml:"grafana"` + Http *HttpConf `yaml:"http"` + PilotGo *PilotGoConf `yaml:"PilotGo"` } const config_file = "./config.yaml"