2019-06-18 22:42:43 +00:00
|
|
|
/*
|
|
|
|
* This file is part of the authRxbn eco-system.
|
|
|
|
*
|
|
|
|
* (c) Ruben Meyer <contact@rxbn.de>
|
|
|
|
*
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*/
|
|
|
|
|
|
|
|
module.exports = {
|
2019-06-30 18:56:48 +00:00
|
|
|
log: {
|
2019-06-30 18:59:32 +00:00
|
|
|
directory: () => {
|
|
|
|
return global['__dirname'] + "/logs/"
|
|
|
|
},
|
2019-06-30 18:56:48 +00:00
|
|
|
filename: () => {
|
|
|
|
return (new Date()).toISOString().substr(0, 10) + ".log"
|
|
|
|
}
|
|
|
|
},
|
2019-06-18 22:42:43 +00:00
|
|
|
web: {
|
|
|
|
host: "auth.rxbn.de",
|
|
|
|
port: 8080,
|
|
|
|
poweredBy: 'authRXBN.js',
|
|
|
|
sessionKey: require('crypto').randomBytes(32).toString('hex'),
|
|
|
|
cookieKey: require('crypto').randomBytes(32).toString('hex'),
|
2019-09-25 18:21:00 +00:00
|
|
|
registration: false, // false -> no registration
|
2019-11-23 23:26:53 +00:00
|
|
|
cookieMaxAge: 1000*60*60 // one hour (milliseconds*seconds*minutes)
|
2019-06-18 22:42:43 +00:00
|
|
|
},
|
|
|
|
app: {
|
|
|
|
locale: 'de-DE', // default locale (de-DE & en-EN should be available)
|
|
|
|
},
|
|
|
|
mongoose: {
|
|
|
|
uri: process.env.DB_URL,
|
|
|
|
db: process.env.DB_NAME
|
|
|
|
}
|
|
|
|
};
|