zs 1 год назад
Родитель
Сommit
36e5505008
1 измененных файлов с 11 добавлено и 0 удалено
  1. 11 0
      src/config/config.prod.ts

+ 11 - 0
src/config/config.prod.ts

@@ -4,6 +4,7 @@ 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
@@ -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: {