Make APIKEY und SESSIONKEY file customizable

Running multiple instances sometimes requires different api- and session-keys for security reasons.
This commit is contained in:
Michael Braun 2017-07-31 14:43:04 +02:00 committed by root
parent f6456c0aa7
commit 4cce3bcbed
3 changed files with 17 additions and 4 deletions

View file

@ -39,5 +39,15 @@ for ( var i = 0; i < argv.length; i++ ) {
exports.argv.credentials = arg;
}
// Override location of settings.json file
if ( prevArg == '--sessionkey' || prevArg == '-k' ) {
exports.argv.sessionkey = arg;
}
// Override location of settings.json file
if ( prevArg == '--apikey' || prevArg == '-k' ) {
exports.argv.apikey = arg;
}
prevArg = arg;
}