Skip to content

Commit

Permalink
fix mongo Url in config.json to 27017
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewiski committed Feb 18, 2024
1 parent 1517209 commit 7b90a54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 1 addition & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7b90a54

Please sign in to comment.