quick changes
This commit is contained in:
parent
f5306856a9
commit
db9b974389
2
app.js
2
app.js
@ -35,7 +35,9 @@ if(env_missing) process.exit();
|
|||||||
|
|
||||||
global['modules'].events = load('events'); // event handler
|
global['modules'].events = load('events'); // event handler
|
||||||
global['modules'].cli = load('cli'); // command line interface
|
global['modules'].cli = load('cli'); // command line interface
|
||||||
|
|
||||||
global['modules'].logs = load('logs'); // log handler
|
global['modules'].logs = load('logs'); // log handler
|
||||||
|
global['logs'] = global['modules'].logs; // alias
|
||||||
|
|
||||||
global['modules'].database = load('database'); // database service
|
global['modules'].database = load('database'); // database service
|
||||||
global['modules'].web = load('web'); // web server
|
global['modules'].web = load('web'); // web server
|
||||||
|
@ -8,7 +8,7 @@ module.exports = {
|
|||||||
'command': 'logs',
|
'command': 'logs',
|
||||||
'description': 'output logs',
|
'description': 'output logs',
|
||||||
'action': (args, cb) => {
|
'action': (args, cb) => {
|
||||||
this.log(JSON.stringify(global['gds'].cache.logs));
|
console.log(JSON.stringify(global['gds'].cache.logs));
|
||||||
cb();
|
cb();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -22,7 +22,7 @@ module.exports = {
|
|||||||
poweredBy: 'authRXBN.js',
|
poweredBy: 'authRXBN.js',
|
||||||
sessionKey: require('crypto').randomBytes(32).toString('hex'),
|
sessionKey: require('crypto').randomBytes(32).toString('hex'),
|
||||||
cookieKey: 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)
|
rememberMeMaxAge: 1000*60*60 // two weeks (milliseconds*seconds*minutes)
|
||||||
},
|
},
|
||||||
app: {
|
app: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user