|
@@ -1,5 +1,3 @@
|
|
-/* eslint valid-jsdoc: "off" */
|
|
|
|
-
|
|
|
|
'use strict';
|
|
'use strict';
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -29,13 +27,13 @@ module.exports = appInfo => {
|
|
// 进程设置
|
|
// 进程设置
|
|
config.cluster = {
|
|
config.cluster = {
|
|
listen: {
|
|
listen: {
|
|
- port: 12211,
|
|
|
|
|
|
+ port: 12111,
|
|
},
|
|
},
|
|
};
|
|
};
|
|
// 数据库设置
|
|
// 数据库设置
|
|
- config.dbName = 'point_shopping-dev';
|
|
|
|
|
|
+ config.dbName = 'point_shopping';
|
|
config.mongoose = {
|
|
config.mongoose = {
|
|
- url: `mongodb://120.48.146.1:27017/${config.dbName}`, // 120.48.146.1 127.0.0.1
|
|
|
|
|
|
+ url: `mongodb://127.0.0.1:27017/${config.dbName}`, // 120.48.146.1 127.0.0.1
|
|
options: {
|
|
options: {
|
|
user: 'admin',
|
|
user: 'admin',
|
|
pass: 'admin',
|
|
pass: 'admin',
|
|
@@ -57,53 +55,52 @@ module.exports = appInfo => {
|
|
config.redis = {
|
|
config.redis = {
|
|
client: {
|
|
client: {
|
|
port: 6379, // Redis port
|
|
port: 6379, // Redis port
|
|
- host: '120.48.146.1', // Redis host
|
|
|
|
|
|
+ host: '127.0.0.1', // Redis host
|
|
password: '123456',
|
|
password: '123456',
|
|
- db: 2,
|
|
|
|
|
|
+ db: 1,
|
|
},
|
|
},
|
|
};
|
|
};
|
|
// mq设置
|
|
// mq设置
|
|
config.amqp = {
|
|
config.amqp = {
|
|
client: {
|
|
client: {
|
|
- hostname: '120.48.146.1',
|
|
|
|
- username: 'tehqDev',
|
|
|
|
- password: 'tehqDev',
|
|
|
|
- vhost: 'tehqDev',
|
|
|
|
|
|
+ hostname: '127.0.0.1',
|
|
|
|
+ username: 'tehq',
|
|
|
|
+ password: 'tehq',
|
|
|
|
+ vhost: 'tehq',
|
|
},
|
|
},
|
|
app: true,
|
|
app: true,
|
|
agent: true,
|
|
agent: true,
|
|
};
|
|
};
|
|
// 定时任务机制设置
|
|
// 定时任务机制设置
|
|
config.taskMqConfig = {
|
|
config.taskMqConfig = {
|
|
- ex: 'taskDevLocal',
|
|
|
|
- queue: 'taskDevLocal',
|
|
|
|
- routingKey: 'trDevLocal',
|
|
|
|
- deadEx: 'deadTaskDevLocal',
|
|
|
|
- deadQueue: 'deadTaskQueueDevLocal',
|
|
|
|
- deadLetterRoutingKey: 'deadTrDevLocal',
|
|
|
|
|
|
+ ex: 'task',
|
|
|
|
+ queue: 'task',
|
|
|
|
+ routingKey: 'tr',
|
|
|
|
+ deadEx: 'deadTask',
|
|
|
|
+ deadQueue: 'deadTaskQueue',
|
|
|
|
+ deadLetterRoutingKey: 'deadTr',
|
|
};
|
|
};
|
|
|
|
|
|
-
|
|
|
|
// 路由设置
|
|
// 路由设置
|
|
- config.routePrefix = '/dev/point/v1/api';
|
|
|
|
|
|
+ config.routePrefix = '/point/v1/api';
|
|
// 支付路由回调设置
|
|
// 支付路由回调设置
|
|
config.payReturn = {
|
|
config.payReturn = {
|
|
- order: '/dev/point/v1/api/pay/order',
|
|
|
|
|
|
+ order: '/point/v1/api/pay/order',
|
|
};
|
|
};
|
|
|
|
|
|
// http请求前缀
|
|
// http请求前缀
|
|
config.httpPrefix = {
|
|
config.httpPrefix = {
|
|
- wechat: 'http://127.0.0.1:14001/wechat/api',
|
|
|
|
- // wechat: 'https://broadcast.waityou24.cn/wechat/api',
|
|
|
|
|
|
+ // wechat: 'http://127.0.0.1:14001/wechat/api',
|
|
|
|
+ wechat: 'https://broadcast.waityou24.cn/wechat/api',
|
|
// email: 'http://broadcast.waityou24.cn/semail/api',
|
|
// email: 'http://broadcast.waityou24.cn/semail/api',
|
|
email: 'http://127.0.0.1:14002/semail/api',
|
|
email: 'http://127.0.0.1:14002/semail/api',
|
|
sms: 'http://127.0.0.1:14003/sms/api',
|
|
sms: 'http://127.0.0.1:14003/sms/api',
|
|
};
|
|
};
|
|
config.emailConfig = {
|
|
config.emailConfig = {
|
|
- config: 'free',
|
|
|
|
|
|
+ config: 'tehq',
|
|
};
|
|
};
|
|
config.smsConfig = {
|
|
config.smsConfig = {
|
|
- config: 'free',
|
|
|
|
|
|
+ config: 'tehq',
|
|
};
|
|
};
|
|
// 中间件
|
|
// 中间件
|
|
config.requestLog = {
|
|
config.requestLog = {
|
|
@@ -117,7 +114,7 @@ module.exports = appInfo => {
|
|
config.errcode = {
|
|
config.errcode = {
|
|
groupJoinRefund: -111,
|
|
groupJoinRefund: -111,
|
|
};
|
|
};
|
|
- config.wxPayConfig = 'pointApp';
|
|
|
|
|
|
+ config.wxPayConfig = 'tehqApp';
|
|
return {
|
|
return {
|
|
...config,
|
|
...config,
|
|
...userConfig,
|
|
...userConfig,
|