diff --git a/Dockerfile b/Dockerfile index b07ff520e..71b785629 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,8 @@ FROM golang:1.20 AS builder # Set go mod installation source and proxy ARG GO111MODULE=on -ARG GOPROXY=https://goproxy.cn,direct +ARG GOPROXY=https://goproxy.io,direct + ENV GO111MODULE=$GO111MODULE ENV GOPROXY=$GOPROXY diff --git a/tools/component/component.go b/tools/component/component.go index e0d753c3f..f926f5e40 100644 --- a/tools/component/component.go +++ b/tools/component/component.go @@ -314,7 +314,7 @@ func configGetEnv(config *config.GlobalConfig) error { config.Redis.Username = getEnv("REDIS_USERNAME", config.Redis.Username) config.Redis.Password = getEnv("REDIS_PASSWORD", config.Redis.Password) - config.Redis.Address = getArrEnv("REDIS_ADDRESS", "REDIS_PASSWORD", config.Redis.Address) + config.Redis.Address = getArrEnv("REDIS_ADDRESS", "REDIS_PORT", config.Redis.Address) config.Object.ApiURL = getEnv("OBJECT_APIURL", config.Object.ApiURL) config.Object.Minio.Endpoint = getEnv("MINIO_ENDPOINT", config.Object.Minio.Endpoint)