|
@@ -4,13 +4,14 @@ const redisHost = ip;
|
|
|
const redisPwd = '123456';
|
|
|
const redisDB = 1;
|
|
|
const projectDB = 'video';
|
|
|
+const recordDB = 'video-record'
|
|
|
const loginSign = 'video_demand';
|
|
|
export default {
|
|
|
// use for cookie sign key, should change to your own and keep security
|
|
|
keys: '1697684406848_4978',
|
|
|
loginSign,
|
|
|
koa: {
|
|
|
- port: 20001,
|
|
|
+ port: 19000,
|
|
|
globalPrefix: '/video/api',
|
|
|
},
|
|
|
jwt: {
|
|
@@ -30,6 +31,16 @@ export default {
|
|
|
},
|
|
|
entities: ['./entity'],
|
|
|
},
|
|
|
+ record:{
|
|
|
+ uri: `mongodb://${ip}:27017/${recordDB}`,
|
|
|
+ options: {
|
|
|
+ user: 'admin',
|
|
|
+ pass: 'admin',
|
|
|
+ authSource: 'admin',
|
|
|
+ useNewUrlParser: true,
|
|
|
+ },
|
|
|
+ entities: ['./entityRecord'],
|
|
|
+ }
|
|
|
},
|
|
|
},
|
|
|
redis: {
|