|
@@ -1,20 +1,32 @@
|
|
|
import { MidwayConfig } from '@midwayjs/core';
|
|
|
-
|
|
|
-const suffix = '';
|
|
|
+const ip = '192.168.1.197';
|
|
|
+const branch = 'Two';
|
|
|
+const branchRouter = 'two';
|
|
|
+const port = 12313;
|
|
|
+const basePort = 12311;
|
|
|
+const dbName = `shopping${branch}`;
|
|
|
+const redisPwd = '';
|
|
|
+const redisDB = 3;
|
|
|
+const mqUser = `shopping${branch}`;
|
|
|
+const routePrefix = `/dev/point/${branchRouter}/group/v1/api`;
|
|
|
+const swaggerPath = `/dev/point/${branchRouter}/group/v1/api/doc/api`;
|
|
|
+const payReturn = `/dev/point/${branchRouter}/group/v1/api/orderDeal/callback`;
|
|
|
+const appSign = 'shoppingTwo';
|
|
|
+const suffix = `_${branchRouter}_dev`;
|
|
|
export default {
|
|
|
// use for cookie sign key, should change to your own and keep security
|
|
|
keys: '1669597198171_1000',
|
|
|
koa: {
|
|
|
- port: 12113,
|
|
|
- globalPrefix: '/point/group/v1/api',
|
|
|
+ port: port,
|
|
|
+ globalPrefix: routePrefix,
|
|
|
},
|
|
|
swagger: {
|
|
|
- swaggerPath: '/point/group/v1/api/doc/api',
|
|
|
+ swaggerPath: swaggerPath,
|
|
|
},
|
|
|
mongoose: {
|
|
|
dataSource: {
|
|
|
default: {
|
|
|
- uri: 'mongodb://127.0.0.1:27017/point_shopping',
|
|
|
+ uri: `mongodb://${ip}:27017/${dbName}`,
|
|
|
options: {
|
|
|
user: 'admin',
|
|
|
pass: 'admin',
|
|
@@ -28,9 +40,9 @@ export default {
|
|
|
redis: {
|
|
|
client: {
|
|
|
port: 6379, // Redis port
|
|
|
- host: '127.0.0.1', // Redis host
|
|
|
- password: '123456',
|
|
|
- db: 1,
|
|
|
+ host: ip, // Redis host
|
|
|
+ password: redisPwd,
|
|
|
+ db: redisDB,
|
|
|
},
|
|
|
},
|
|
|
redisKey: {
|
|
@@ -47,12 +59,12 @@ export default {
|
|
|
baseURL: 'https://broadcast.waityou24.cn/wechat/api',
|
|
|
},
|
|
|
base: {
|
|
|
- baseURL: 'http://127.0.0.1/point/v1/api',
|
|
|
+ baseURL: `http://127.0.0.1:${basePort}/dev/point/${branchRouter}/v1/api`,
|
|
|
},
|
|
|
},
|
|
|
},
|
|
|
rabbitmq: {
|
|
|
- url: 'amqp://tehq:tehq@127.0.0.1/tehq',
|
|
|
+ url: `amqp://${mqUser}:${mqUser}@${ip}/${mqUser}`,
|
|
|
},
|
|
|
mqConfig: {
|
|
|
normal: {
|
|
@@ -67,6 +79,6 @@ export default {
|
|
|
},
|
|
|
timeout: 15, //min
|
|
|
},
|
|
|
- wxPayConfig: 'tehqApp',
|
|
|
- wxPayCallBack: '/point/group/v1/api/orderDeal/callback',
|
|
|
+ wxPayConfig: appSign,
|
|
|
+ wxPayCallBack: payReturn,
|
|
|
} as MidwayConfig;
|