mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
fix: mongo uri connect (#1611)
This commit is contained in:
parent
998d4a3504
commit
cfde7bb0ff
@ -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