|
@@ -5,6 +5,7 @@
|
|
/**
|
|
/**
|
|
* @param {Egg.EggAppInfo} appInfo app info
|
|
* @param {Egg.EggAppInfo} appInfo app info
|
|
*/
|
|
*/
|
|
|
|
+const ip = '127.0.0.1';
|
|
module.exports = appInfo => {
|
|
module.exports = appInfo => {
|
|
/**
|
|
/**
|
|
* built-in config
|
|
* built-in config
|
|
@@ -30,7 +31,7 @@ module.exports = appInfo => {
|
|
// mq配置
|
|
// mq配置
|
|
config.amqp = {
|
|
config.amqp = {
|
|
client: {
|
|
client: {
|
|
- hostname: '192.168.1.128',
|
|
|
|
|
|
+ hostname: ip,
|
|
username: 'visit',
|
|
username: 'visit',
|
|
password: 'visit',
|
|
password: 'visit',
|
|
vhost: 'train',
|
|
vhost: 'train',
|
|
@@ -43,7 +44,7 @@ module.exports = appInfo => {
|
|
config.redis = {
|
|
config.redis = {
|
|
client: {
|
|
client: {
|
|
port: 6379, // Redis port
|
|
port: 6379, // Redis port
|
|
- host: '192.168.1.128', // Redis host
|
|
|
|
|
|
+ host: ip, // Redis host
|
|
password: '123456',
|
|
password: '123456',
|
|
db: 0,
|
|
db: 0,
|
|
},
|
|
},
|