From 89ccf1a3a45d40019d2b47d69566d005cdd36302 Mon Sep 17 00:00:00 2001 From: Ruben Meyer <46384706+rxbnDE@users.noreply.github.com> Date: Wed, 19 Jun 2019 00:42:43 +0200 Subject: [PATCH] config file --- bin/config.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 bin/config.js diff --git a/bin/config.js b/bin/config.js new file mode 100644 index 0000000..a102e01 --- /dev/null +++ b/bin/config.js @@ -0,0 +1,27 @@ +/* + * This file is part of the authRxbn eco-system. + * + * (c) Ruben Meyer + * + * 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 + } +};