2018-04-27 12:23:19 +00:00
|
|
|
// Main Configuration file
|
|
|
|
//
|
|
|
|
|
|
|
|
const DBAuth = require('../../private/DBAuth');
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
server: {
|
|
|
|
enableSSL: false,
|
2018-06-23 11:19:14 +00:00
|
|
|
ssl: {
|
2018-04-27 12:23:19 +00:00
|
|
|
cert: '',
|
|
|
|
key: '',
|
|
|
|
passphrase: ''
|
|
|
|
},
|
|
|
|
port: 3000
|
|
|
|
},
|
|
|
|
|
|
|
|
mongoURL: `mongodb://${DBAuth.username}:${DBAuth.password}@ds159489.mlab.com:59489/framez_db`,
|
|
|
|
|
2018-04-28 14:44:33 +00:00
|
|
|
defaults: {
|
|
|
|
user: {
|
|
|
|
avatar: 'http://www.top-madagascar.com/assets/images/admin/user-admin.png'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
validators: {
|
|
|
|
account: {
|
|
|
|
password_min_length: 8,
|
|
|
|
username_min_length: 3
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-06-23 11:19:14 +00:00
|
|
|
logging: {
|
|
|
|
logsPath: 'Logs',
|
|
|
|
fileLogLevel: 'silly',
|
|
|
|
consoleLogLevel: 'silly'
|
|
|
|
},
|
|
|
|
|
2018-04-28 14:44:33 +00:00
|
|
|
// Password hash
|
|
|
|
salt_work_factor: 10
|
2018-04-27 12:23:19 +00:00
|
|
|
};
|