Skip to content

Commit

Permalink
change url to support k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
Xib1uvXi committed Dec 27, 2019
1 parent ec4f97a commit debc384
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions db-config/db_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ func GetAppDefaultConf() *AppConfig {
// 获取容器中的配置
func GetDevDockerConf() *AppConfig {
return &AppConfig{
RedisUrl: "redis-master:6379",
MysqlHost: "qy-mysql",
RedisUrl: "redis-master.default.svc.cluster.local:6379",
MysqlHost: "qy-mysql.default.svc.cluster.local",
MysqlPort: "3306",
MysqlUname: "qy",
HttpServerPort: "3000",
Expand All @@ -113,8 +113,8 @@ func GetProdDockerConf() *AppConfig {
uname = strings.TrimSpace(string(data))
}
return &AppConfig{
RedisUrl: "redis-master:6379",
MysqlHost: "qy-mysql",
RedisUrl: "redis-master.default.svc.cluster.local:6379",
MysqlHost: "qy-mysql.default.svc.cluster.local",
MysqlPort: "3306",
MysqlUname: uname,
HttpServerPort: "3000",
Expand Down

0 comments on commit debc384

Please sign in to comment.