mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-04 11:22:17 +08:00
fix: mongo uri connect
This commit is contained in:
parent
47dd6b17f6
commit
7c505020aa
@ -74,6 +74,10 @@ func buildMongoURI() string {
|
|||||||
return uri
|
return uri
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if config.Config.Mongo.Uri != "" {
|
||||||
|
return config.Config.Mongo.Uri
|
||||||
|
}
|
||||||
|
|
||||||
username := os.Getenv("MONGO_USERNAME")
|
username := os.Getenv("MONGO_USERNAME")
|
||||||
password := os.Getenv("MONGO_PASSWORD")
|
password := os.Getenv("MONGO_PASSWORD")
|
||||||
address := os.Getenv("MONGO_ADDRESS")
|
address := os.Getenv("MONGO_ADDRESS")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user