From db9b9743897a21454919e0e2046806ac360f3040 Mon Sep 17 00:00:00 2001 From: Ruben Meyer <46384706+rxbnDE@users.noreply.github.com> Date: Wed, 25 Sep 2019 20:21:00 +0200 Subject: [PATCH] quick changes --- app.js | 2 ++ bin/cli/cmds/print_cached_log.js | 2 +- bin/config.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 46f9367..b2fb18a 100644 --- a/app.js +++ b/app.js @@ -35,7 +35,9 @@ if(env_missing) process.exit(); global['modules'].events = load('events'); // event handler global['modules'].cli = load('cli'); // command line interface + global['modules'].logs = load('logs'); // log handler +global['logs'] = global['modules'].logs; // alias global['modules'].database = load('database'); // database service global['modules'].web = load('web'); // web server diff --git a/bin/cli/cmds/print_cached_log.js b/bin/cli/cmds/print_cached_log.js index 39e5feb..485552a 100644 --- a/bin/cli/cmds/print_cached_log.js +++ b/bin/cli/cmds/print_cached_log.js @@ -8,7 +8,7 @@ module.exports = { 'command': 'logs', 'description': 'output logs', 'action': (args, cb) => { - this.log(JSON.stringify(global['gds'].cache.logs)); + console.log(JSON.stringify(global['gds'].cache.logs)); cb(); } }; diff --git a/bin/config.js b/bin/config.js index f99b541..c1022eb 100644 --- a/bin/config.js +++ b/bin/config.js @@ -22,7 +22,7 @@ module.exports = { poweredBy: 'authRXBN.js', sessionKey: require('crypto').randomBytes(32).toString('hex'), cookieKey: require('crypto').randomBytes(32).toString('hex'), - registration: true, // false -> no registration + registration: false, // false -> no registration rememberMeMaxAge: 1000*60*60 // two weeks (milliseconds*seconds*minutes) }, app: {