From 734df8c80fd05b82c093aac32cfe8591b92087f4 Mon Sep 17 00:00:00 2001 From: Gzx1999 Date: Sun, 9 Apr 2023 09:25:42 +0800 Subject: [PATCH] add pilotgo server config --- gala-ops/server/config.yml.templete | 2 ++ gala-ops/server/config/config.go | 10 ++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gala-ops/server/config.yml.templete b/gala-ops/server/config.yml.templete index 63d7de83..1f329c53 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 55f875a1..7c451460 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" -- Gitee