'use strict'; module.exports = appInfo => { const config = exports = {}; // use for cookie sign key, should change to your own and keep security config.keys = appInfo.name + '_1517455121740_8202'; // add your config here // config.middleware = []; config.cluster = { listen: { port: 8202, }, }; config.errorMongo = { details: true, }; config.errorHanler = { details: true, }; // mongoose config config.mongoose = { url: 'mongodb://localhost:27017/cms', options: { user: 'root', pass: 'Ziyouyanfa#@!', authSource: 'admin', useNewUrlParser: true, useCreateIndex: true, }, }; return config; };