|
@@ -33,11 +33,23 @@ module.exports = appInfo => {
|
|
};
|
|
};
|
|
|
|
|
|
// mongoose config
|
|
// mongoose config
|
|
|
|
+ // config.mongoose = {
|
|
|
|
+ // url: 'mongodb://localhost:27017/cms',
|
|
|
|
+ // options: {
|
|
|
|
+ // user: 'root',
|
|
|
|
+ // pass: 'Ziyouyanfa#@!',
|
|
|
|
+ // authSource: 'admin',
|
|
|
|
+ // useNewUrlParser: true,
|
|
|
|
+ // useCreateIndex: true,
|
|
|
|
+ // useUnifiedTopology: true,
|
|
|
|
+ // }
|
|
|
|
+ // };
|
|
|
|
+
|
|
config.mongoose = {
|
|
config.mongoose = {
|
|
url: 'mongodb://localhost:27017/cms',
|
|
url: 'mongodb://localhost:27017/cms',
|
|
options: {
|
|
options: {
|
|
- user: 'root',
|
|
|
|
- pass: 'Ziyouyanfa#@!',
|
|
|
|
|
|
+ user: 'cms',
|
|
|
|
+ pass: 'cms2019',
|
|
authSource: 'admin',
|
|
authSource: 'admin',
|
|
useNewUrlParser: true,
|
|
useNewUrlParser: true,
|
|
useCreateIndex: true,
|
|
useCreateIndex: true,
|