module.exports = app => { global.appPath = __dirname; process.env.OPENSSL_CONF = '/etc/ssl/'; // Init database instance require('./lib/database').init(); // Init SMTP Instance require('./lib/smtp').init(); require('./lib/router')(app); };