1
0
Fork 0
auth.rxbn.de/bin/config.js

39 lines
922 B
JavaScript
Raw Normal View History

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: process.env.SESSION_KEY,
cookieKey: process.env.COOKIE_KEY,
2019-09-25 18:21:00 +00:00
registration: false, // false -> no registration
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)
2020-08-14 21:44:12 +00:00
name: 'authRXBN',
passhashDelimiter: '|',
adminGroupname: "Administration"
2019-06-18 22:42:43 +00:00
},
mongoose: {
uri: process.env.DB_URL,
db: process.env.DB_NAME
}
};