1
0
Fork 0

config file

This commit is contained in:
Ruben Meyer 2019-06-19 00:42:43 +02:00
parent 58dbcb410e
commit 89ccf1a3a4
1 changed files with 27 additions and 0 deletions

27
bin/config.js Normal file
View File

@ -0,0 +1,27 @@
/*
* 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 = {
web: {
host: "auth.rxbn.de",
port: 8080,
poweredBy: 'authRXBN.js',
sessionKey: require('crypto').randomBytes(32).toString('hex'),
cookieKey: require('crypto').randomBytes(32).toString('hex'),
registration: true, // false -> no registration
rememberMeMaxAge: 1000*60*60 // two weeks (milliseconds*seconds*minutes)
},
app: {
locale: 'de-DE', // default locale (de-DE & en-EN should be available)
},
mongoose: {
uri: process.env.DB_URL,
db: process.env.DB_NAME
}
};