gemercheung пре 3 година
родитељ
комит
2e494798b7
3 измењених фајлова са 23 додато и 19 уклоњено
  1. 20 12
      config.yaml
  2. 2 6
      src/app.module.ts
  3. 1 1
      src/rotate/rotate.service.ts

+ 20 - 12
config.yaml

@@ -3,17 +3,10 @@ http:
   port: 6688
 
 
-# grpc:
-#   url: '221.4.210.172:23000'
 grpc:
-  url: '192.168.0.200:3000'
-
-# redis:
-#   port: 26379
-#   host: '221.4.210.172' #远程调试需要设置bindip 为0.0.0.0 并且设置密码
-#   password: '' # 非远程不需要密码
-#   decode_responses: true
-#   db: 9
+  url: '221.4.210.172:23000'
+# grpc:
+#   url: '192.168.0.47:3000'
 
 redis:
   port: 26379
@@ -21,6 +14,21 @@ redis:
   password: '' # 非远程不需要密码
   decode_responses: true
   db: 9
+
+queueRedis:
+  port: 26379
+  host: '221.4.210.172' #远程调试需要设置bindip 为0.0.0.0 并且设置密码
+  password: '' # 非远程不需要密码
+  decode_responses: true
+  db: 16
+
+# redis:
+#   port: 6379
+#   host: '192.168.0.47' #远程调试需要设置bindip 为0.0.0.0 并且设置密码
+#   password: '' # 非远程不需要密码
+#   decode_responses: true
+#   db: 9
+
 stun:
   server: ['stun:172.18.156.41:3478', 'stun:120.24.252.95:3478']
   portRangeBegin: 52000
@@ -30,9 +38,9 @@ server:
   private_ip: 172.18.197.114
   public_ip: 120.24.252.95
 
-  
+
 # PRIVATE_IP=172.18.197.114
 # PUBLIC_IP=120.24.252.95
 # STUNS_SEVER="stun:172.18.156.41:3478,stun:120.24.252.95:3478"
 # GRPC_URL="192.168.0.48:3000"
-# REDIS_URL="redis://:192.168.0.47:6379/9"
+# REDIS_URL="redis://:192.168.0.47:6379/9"

+ 2 - 6
src/app.module.ts

@@ -16,15 +16,11 @@ import { RotateService } from './rotate/rotate.service';
     RoomModule,
     SceneModule,
     BullModule.forRoot({
-      redis: {
-        host: 'localhost',
-        port: 6379,
-        password: 'redis9394',
-      },
+      redis: configuration().queueRedis,
     }),
     // CacheModule,
   ],
   controllers: [AppController],
   providers: [AppService, MetaGateway, RotateService],
 })
-export class AppModule {}
+export class AppModule { }

+ 1 - 1
src/rotate/rotate.service.ts

@@ -294,7 +294,7 @@ export class RotateService {
 
       return reply;
     } catch (error) {
-      console.log('RotateService', error);
+      console.error('RotateService', error);
     }
   }