master
Alex 2021-12-28 20:16:22 +01:00
parent d4a0ff6269
commit 30756370b4
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,8 @@ var PlayersCollection *mongo.Collection
func getConnectionURI() string {
cfg := serverconfig.Cfg.MongoDB
logger.Mongo.Println("mongo cfg", cfg.Username)
return "mongodb://" + cfg.Username + ":" + cfg.Password + "@" + cfg.Hostname + ":" + cfg.Port + "/?maxPoolSize=20&w=majority&authSource=" + cfg.Database
}