This commit is contained in:
HAM!DREZA
2024-10-15 19:47:53 +03:30
parent a985312484
commit 78ffe90deb
6 changed files with 287 additions and 45 deletions
+2 -1
View File
@@ -16,7 +16,8 @@ mongoose.plugin((schema) => {
// mongodb database connection string. change it as per your needs. here "mydb" is the name of the database. You don't need to create DB from mongodb terminal. mongoose create the database automatically.
// mongoose.connect('mongodb://localhost:27017/bargrest_barg', {
mongoose.connect(
"mongodb://root:asrerb6udsf13sdfb6@srv-captain--danak-mongo-2:27017/bargrest_bargtest?authSource=admin",
// "mongodb://root:asrerb6udsf13sdfb6@db-public-danak.run.danakcorp.com:21365/bargrest_bargtest?authSource=admin",
"mongodb://root:asrerb6udsf13sdfb6@srv-captain--danak-mongo-2:27017/bargrest_bargtest?authSource=admin",
{
useNewUrlParser: true,
useUnifiedTopology: true,