mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-18 20:19:14 +08:00
815
Signed-off-by: hanzhixiao <709674996@qq.com>
This commit is contained in:
parent
6483287659
commit
c1f0979f71
@ -28,7 +28,7 @@ import (
|
||||
const (
|
||||
cfgPath = "../../../../../config/config.yaml"
|
||||
minioHealthCheckDuration = 1
|
||||
maxRetry = 100
|
||||
maxRetry = 10
|
||||
componentStartErrCode = 6000
|
||||
configErrCode = 6001
|
||||
)
|
||||
@ -172,7 +172,7 @@ func checkMongo() error {
|
||||
func checkMinio() error {
|
||||
if config.Config.Object.Enable == "minio" {
|
||||
if exactIP(config.Config.Object.ApiURL) == "127.0.0.1" || exactIP(config.Config.Object.Minio.Endpoint) == "127.0.0.1" {
|
||||
return ErrConfig.Wrap("apiURL or endpoint contain 127.0.0.1.")
|
||||
return ErrConfig.Wrap("apiURL or Minio endpoint contain 127.0.0.1.")
|
||||
}
|
||||
conf := config.Config.Object.Minio
|
||||
u, _ := url.Parse(conf.Endpoint)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user