|
@@ -61,27 +61,26 @@ module.exports = appInfo => {
|
|
|
// 学生详细信息
|
|
|
config.strDirMq = '/api/stud/registers/';
|
|
|
|
|
|
- // mq config
|
|
|
config.amqp = {
|
|
|
client: {
|
|
|
hostname: '127.0.0.1',
|
|
|
- username: 'wy',
|
|
|
- password: '1',
|
|
|
+ username: 'smart',
|
|
|
+ password: 'smart123',
|
|
|
vhost: 'smart',
|
|
|
},
|
|
|
app: true,
|
|
|
agent: true,
|
|
|
};
|
|
|
|
|
|
+ // mongoose config
|
|
|
config.mongoose = {
|
|
|
- url: 'mongodb://localhost:27017/smart',
|
|
|
+ url: 'mongodb://127.0.0.1:27017/smart',
|
|
|
options: {
|
|
|
- user: 'demo',
|
|
|
- pass: 'demo',
|
|
|
+ user: 'root',
|
|
|
+ pass: 'Ziyouyanfa#@!',
|
|
|
authSource: 'admin',
|
|
|
useNewUrlParser: true,
|
|
|
useCreateIndex: true,
|
|
|
- useUnifiedTopology: true,
|
|
|
},
|
|
|
};
|
|
|
|