|
@@ -30,7 +30,7 @@ module.exports = appInfo => {
|
|
|
// mq配置
|
|
|
config.amqp = {
|
|
|
client: {
|
|
|
- hostname: '127.0.0.1',
|
|
|
+ hostname: '192.168.1.128',
|
|
|
username: 'visit',
|
|
|
password: 'visit',
|
|
|
vhost: 'train',
|
|
@@ -43,8 +43,8 @@ module.exports = appInfo => {
|
|
|
config.redis = {
|
|
|
client: {
|
|
|
port: 6379, // Redis port
|
|
|
- host: '127.0.0.1', // Redis host
|
|
|
- password: '',
|
|
|
+ host: '192.168.1.128', // Redis host
|
|
|
+ password: '123456',
|
|
|
db: 0,
|
|
|
},
|
|
|
};
|
|
@@ -53,16 +53,16 @@ module.exports = appInfo => {
|
|
|
config.mongoose = {
|
|
|
url: 'mongodb://127.0.0.1:27017/train',
|
|
|
options: {
|
|
|
- // user: 'admin',
|
|
|
- // pass: 'admin',
|
|
|
- // authSource: 'admin',
|
|
|
- // useNewUrlParser: true,
|
|
|
- // useCreateIndex: true,
|
|
|
+ user: 'root',
|
|
|
+ pass: 'root',
|
|
|
+ authSource: 'admin',
|
|
|
+ useNewUrlParser: true,
|
|
|
+ useCreateIndex: true,
|
|
|
},
|
|
|
};
|
|
|
|
|
|
config.project = {
|
|
|
- center: 'http://127.0.0.1:2001',
|
|
|
+ center: 'http://127.0.0.1:7001',
|
|
|
};
|
|
|
|
|
|
// 安全配置
|