|
@@ -39,11 +39,11 @@ module.exports = appInfo => {
|
|
config.mongoose = {
|
|
config.mongoose = {
|
|
url: `mongodb://localhost:27017/${config.dbName}`,
|
|
url: `mongodb://localhost:27017/${config.dbName}`,
|
|
options: {
|
|
options: {
|
|
- // user: 'admin',
|
|
|
|
- // pass: 'admin',
|
|
|
|
- // authSource: 'admin',
|
|
|
|
- // useNewUrlParser: true,
|
|
|
|
- // useCreateIndex: true,
|
|
|
|
|
|
+ user: 'admin',
|
|
|
|
+ pass: 'admin',
|
|
|
|
+ authSource: 'admin',
|
|
|
|
+ useNewUrlParser: true,
|
|
|
|
+ useCreateIndex: true,
|
|
},
|
|
},
|
|
};
|
|
};
|
|
// 路由设置
|
|
// 路由设置
|