gemercheung 3 anni fa
parent
commit
2cdfb5c2ae
3 ha cambiato i file con 22 aggiunte e 20 eliminazioni
  1. 19 19
      config.yaml
  2. 2 1
      src/app.module.ts
  3. 1 0
      src/cache/cache.module.ts

+ 19 - 19
config.yaml

@@ -3,31 +3,31 @@ 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: 6379
-  host: '192.168.0.47' #远程调试需要设置bindip 为0.0.0.0 并且设置密码
-  password: '' # 非远程不需要密码
+  port: 26379
+  host: '120.24.252.95' #远程调试需要设置bindip 为0.0.0.0 并且设置密码
+  password: 'sxz123321SxZ@' # 非远程不需要密码
   decode_responses: true
   db: 9
 
 queueRedis:
-  port: 6379
-  host: 'localhost' #远程调试需要设置bindip 为0.0.0.0 并且设置密码
-  password: 'redis9394' # 非远程不需要密码
+  port: 26379
+  host: '120.24.252.95' #远程调试需要设置bindip 为0.0.0.0 并且设置密码
+  password: 'sxz123321SxZ@' # 非远程不需要密码
   decode_responses: true
-  db: 0
+  db: 14
+
+# 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']
@@ -38,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 - 1
src/app.module.ts

@@ -8,6 +8,7 @@ import { SceneModule } from './scene/scene.module';
 // import { CacheModule } from './cache/cache.module';
 import configuration from './config/configuration';
 import { BullModule } from '@nestjs/bull';
+console.log('redis配置2', configuration().queueRedis);
 @Module({
   imports: [
     ConfigModule.forRoot({ isGlobal: true, load: [configuration] }),
@@ -21,4 +22,4 @@ import { BullModule } from '@nestjs/bull';
   controllers: [AppController],
   providers: [AppService, MetaGateway],
 })
-export class AppModule {}
+export class AppModule { }

+ 1 - 0
src/cache/cache.module.ts

@@ -3,6 +3,7 @@ import { CacheService } from './cache.service';
 import { RedisModule } from 'nestjs-redis';
 import configuration from 'src/config/configuration';
 
+console.log('redis配置1', configuration().redis);
 @Module({
   imports: [RedisModule.register(configuration().redis)],
   providers: [CacheService],