Skip to content

Commit

Permalink
Fix new url format for mongodb (lynckia#1677)
Browse files Browse the repository at this point in the history
  • Loading branch information
lodoyun authored Jan 19, 2021
1 parent 1fc53ef commit c5d8b19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/installNuve.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ populate_mongo(){
dbURL=`grep "config.nuve.dataBaseURL" $PATHNAME/licode_default.js`

dbURL=`echo $dbURL| cut -d'"' -f 2`
dbURL=`echo $dbURL| cut -d'"' -f 1`
dbURL=`echo $dbURL| sed 's/mongodb:\/\///'`

echo [licode] Creating superservice in $dbURL
get_or_create_superservice_credentials
Expand Down
3 changes: 2 additions & 1 deletion scripts/licode_default.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ config.cloudProvider.name = '';
NUVE CONFIGURATION
**********************************************************/
config.nuve = {};
config.nuve.dataBaseURL = "localhost/nuvedb"; // default value: 'localhost/nuvedb'
config.nuve.dataBaseURL = "mongodb://localhost/nuvedb"; // default value: "mongodb://localhost/nuvedb"
config.nuve.dataBaseName = 'nuvedb'; // default value: 'nuvedb'
config.nuve.superserviceID = '_auto_generated_ID_'; // default value: ''
config.nuve.superserviceKey = '_auto_generated_KEY_'; // default value: ''
config.nuve.testErizoController = 'localhost:8080'; // default value: 'localhost:8080'
Expand Down

0 comments on commit c5d8b19

Please sign in to comment.