|
@@ -1,12 +1,10 @@
|
|
import { MidwayConfig } from '@midwayjs/core';
|
|
import { MidwayConfig } from '@midwayjs/core';
|
|
const ip = 'host.docker.internal';
|
|
const ip = 'host.docker.internal';
|
|
|
|
+// const redisIp = '172.17.0.1'; // midway里用上面的ip会被转变成127.0.0.1
|
|
const baseDB = 'shoppingOne';
|
|
const baseDB = 'shoppingOne';
|
|
const dbName = 'shoppingOne_chat';
|
|
const dbName = 'shoppingOne_chat';
|
|
-const redisPwd = '123456';
|
|
|
|
-const redisDB = 2;
|
|
|
|
const mqUser = 'shoppingOne';
|
|
const mqUser = 'shoppingOne';
|
|
const routePrefix = '/point/one/chat/v1/api';
|
|
const routePrefix = '/point/one/chat/v1/api';
|
|
-const swaggerPath = '/point/one/chat/v1/api/doc/api'
|
|
|
|
const suffix = '_local';
|
|
const suffix = '_local';
|
|
export default {
|
|
export default {
|
|
// use for cookie sign key, should change to your own and keep security
|
|
// use for cookie sign key, should change to your own and keep security
|
|
@@ -18,9 +16,6 @@ export default {
|
|
webSocket: {
|
|
webSocket: {
|
|
clientTracking: true,
|
|
clientTracking: true,
|
|
},
|
|
},
|
|
- swagger: {
|
|
|
|
- swaggerPath: swaggerPath,
|
|
|
|
- },
|
|
|
|
mongoose: {
|
|
mongoose: {
|
|
dataSource: {
|
|
dataSource: {
|
|
default: {
|
|
default: {
|
|
@@ -45,19 +40,6 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- redis: {
|
|
|
|
- client: {
|
|
|
|
- port: 6379, // Redis port
|
|
|
|
- host: ip, // Redis host
|
|
|
|
- password: redisPwd,
|
|
|
|
- db: redisDB,
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- redisKey: {
|
|
|
|
- orderKeyPrefix: 'orderKey:',
|
|
|
|
- },
|
|
|
|
- redisTimeout: 600,
|
|
|
|
-
|
|
|
|
jwt: {
|
|
jwt: {
|
|
secret: 'Ziyouyanfa!@#',
|
|
secret: 'Ziyouyanfa!@#',
|
|
},
|
|
},
|