mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 19:02:31 +08:00
Merge branch 'openimsdk:main' into env2
This commit is contained in:
commit
b7bd7484dc
@ -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