1
0
Fork 0

quick changes

This commit is contained in:
Ruben Meyer 2019-09-25 20:21:00 +02:00
parent f5306856a9
commit db9b974389
3 changed files with 4 additions and 2 deletions

2
app.js
View File

@ -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

View File

@ -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();
}
};

View File

@ -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: {