From 7b90a5432efa022f440832eb9fcc38d5d56600f1 Mon Sep 17 00:00:00 2001 From: Andrew DeVries Date: Sun, 18 Feb 2024 10:09:39 -0500 Subject: [PATCH] fix mongo Url in config.json to 27017 --- package.json | 2 +- server.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 3b400c6..be0a365 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "uisp-tools", - "version": "0.0.23", + "version": "0.0.24", "description": "Tools for UISP", "main": "server.js", "license": "GPL-3.0-or-later", diff --git a/server.js b/server.js index e882bf3..d1fa270 100644 --- a/server.js +++ b/server.js @@ -47,9 +47,8 @@ if (process.env.localDebug === 'true') { var defaultConfig = { "configDirectory": configFileOptions.configDirectory, "urlPrefix": "", - "mongoDbServerUrl": process.env.MONGODBSERVERURL || ((process.env.MONGODBUSERNAME || "mongodb") + ":" + (process.env.MONGODBPASSWORD || "U!spT00ls!") + "@uisptools_mongodb" + (process.env.UISPTOOLS_ALIAS || "") + ":" (UISPTOOLS_MONGOPORT || 49017) + "/?connectTimeoutMS=300000&authSource=admin") , + "mongoDbServerUrl": process.env.MONGODBSERVERURL || ((process.env.MONGODBUSERNAME || "mongodb") + ":" + (process.env.MONGODBPASSWORD || "U!spT00ls!") + "@uisptools_mongodb" + (process.env.UISPTOOLS_ALIAS || "") + ":27017/?connectTimeoutMS=300000&authSource=admin") , "googleApiKey": process.env.GOOGLEAPIKEY || "", - "mongoDbDatabaseName": process.env.MONGODBDATABASE || "uisptools", "logDirectory": "logs", "adminRoute": "/admin",