Skip to content

Commit

Permalink
fix: 修复返回feed-server服务相关配置 (#3396)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ambition9186 authored Jul 24, 2024
1 parent e523a34 commit 10c181d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
5 changes: 2 additions & 3 deletions bcs-services/bcs-bscp/cmd/ui/service/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,8 @@ func (s *WebServer) subRouter() http.Handler {
BKSharedResBaseJSURL: config.G.Frontend.Host.BKSharedResBaseJSURL,
EnableBKNotice: config.G.Frontend.EnableBKNotice,
Helper: config.G.Frontend.Helper,
FeedHost: config.G.Base.FeedHost,
FeedGrpcPort: config.G.Base.FeedGrpcPort,
FeedHttpPort: config.G.Base.FeedHttpPort,
GrpcAddr: config.G.Base.GrpcAddr,
HttpAddr: config.G.Base.HttpAddr,
NodeManHost: config.G.Frontend.Host.BKNODEMANHOST,
}

Expand Down
10 changes: 4 additions & 6 deletions bcs-services/bcs-bscp/embed.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ type IndexConfig struct {
EnableBKNotice bool // 是否启用蓝鲸通知中心
Helper string
ProxyAPI bool
FeedHost string // feed-server 地址
FeedGrpcPort uint // feed-server grpc 端口
FeedHttpPort uint // feed-server http 端口
GrpcAddr string // feed-server grpc 地址
HttpAddr string // feed-server http 地址
BKSharedResBaseJSURL string // 规则是${bkSharedResUrl}/${目录名 aka app_code}/base.js
NodeManHost string
}
Expand Down Expand Up @@ -172,9 +171,8 @@ func (e *EmbedWeb) RenderIndexHandler(conf *IndexConfig) http.Handler {
"SITE_URL": conf.SiteURL,
"ENABLE_BK_NOTICE": conf.EnableBKNotice,
"HELPER": conf.Helper,
"FEED_HOST": conf.FeedHost,
"FEED_GRPC_PORT": conf.FeedGrpcPort,
"FEED_HTTP_PORT": conf.FeedHttpPort,
"GRPC_ADDR": conf.GrpcAddr,
"HTTP_ADDR": conf.HttpAddr,
"BK_NODE_HOST": conf.NodeManHost,
}

Expand Down
5 changes: 2 additions & 3 deletions bcs-services/bcs-bscp/pkg/config/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ type BaseConf struct {
TimeZone string `yaml:"time_zone"`
LanguageCode string `yaml:"language_code"`
RunEnv string `yaml:"run_env"`
FeedHost string `yaml:"feed_host"`
FeedGrpcPort uint `yaml:"feed_grpc_port"`
FeedHttpPort uint `yaml:"feed_http_port"`
GrpcAddr string `yaml:"grpc_addr"`
HttpAddr string `yaml:"http_addr"`
Location *time.Location `yaml:"-"`
}

Expand Down

0 comments on commit 10c181d

Please sign in to comment.