|
@@ -1,7 +1,7 @@
|
|
|
'use strict';
|
|
|
|
|
|
module.exports = appInfo => {
|
|
|
- const config = exports = {};
|
|
|
+ const config = (exports = {});
|
|
|
|
|
|
// use for cookie sign key, should change to your own and keep security
|
|
|
config.keys = appInfo.name + '_1517455121740_8202';
|
|
@@ -11,15 +11,15 @@ module.exports = appInfo => {
|
|
|
|
|
|
config.cluster = {
|
|
|
listen: {
|
|
|
- port: 8202,
|
|
|
- },
|
|
|
+ port: 8105
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
config.errorMongo = {
|
|
|
- details: true,
|
|
|
+ details: true
|
|
|
};
|
|
|
config.errorHanler = {
|
|
|
- details: true,
|
|
|
+ details: true
|
|
|
};
|
|
|
|
|
|
// mongoose config
|
|
@@ -31,7 +31,8 @@ module.exports = appInfo => {
|
|
|
authSource: 'admin',
|
|
|
useNewUrlParser: true,
|
|
|
useCreateIndex: true,
|
|
|
- },
|
|
|
+ useUnifiedTopology: true,
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
return config;
|