Переглянути джерело

暂时将响应返回改为300s

zhujinghui 4 роки тому
батько
коміт
e96f8e1048

+ 1 - 0
src/main/java/com/fcb/gateway/filter/AuthAndLogFilter.java

@@ -47,6 +47,7 @@ public class AuthAndLogFilter implements GlobalFilter, Ordered {
                 || requestUrl.startsWith("/fcb/pano/common/")
                 || requestUrl.startsWith("/api/scene/file/")
                 || requestUrl.startsWith("/api/manage/user/getVerify")
+                || requestUrl.startsWith("/api/manage/user/getEncodeUrl")
                 || requestUrl.startsWith("/api/manage/user/checkVerify")
                 || requestUrl.startsWith("/fcb/project/api/query")
                 || requestUrl.startsWith("/fcb/project/house/houseDetailWithoutAuth")

+ 2 - 5
src/main/resources/application-prod.properties

@@ -1,14 +1,11 @@
 
-spring.cloud.nacos.discovery.server-addr=10.71.9.205:80
-spring.cloud.nacos.config.server-addr=10.71.9.205:80
-
 spring.redis.cluster.max-redirects=3
-spring.redis.cluster.nodes=10.71.188.181:7000,10.71.188.108:7000,10.71.188.113:7000,10.71.188.206:7000,10.71.188.238:7000,10.71.188.148:7000
+spring.redis.cluster.nodes=10.71.184.237:7000,10.71.184.181:7000,10.71.184.217:7000
 spring.redis.timeout=5000ms
 spring.redis.jedis.pool.max-active=8
 spring.redis.jedis.pool.max-idle=8
 spring.redis.jedis.pool.max-wait=-1
 spring.redis.jedis.pool.min-idle=0
 spring.redis.database=0
-spring.redis.password=m8P6JugfYevMBi8bUnlu
+spring.redis.password=QBzhHTxfcYLTs0n5J5VQ
 

+ 0 - 3
src/main/resources/application-test.properties

@@ -1,6 +1,3 @@
-spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848
-spring.cloud.nacos.config.server-addr=127.0.0.1:8848
-
 
 spring.redis.cluster.max-redirects=3
 spring.redis.cluster.nodes=10.1.152.54:6379

+ 0 - 3
src/main/resources/application-uat.properties

@@ -1,6 +1,3 @@
-spring.cloud.nacos.discovery.server-addr=10.71.5.163:80
-spring.cloud.nacos.config.server-addr=10.71.5.163:80
-
 
 spring.redis.cluster.max-redirects=3
 spring.redis.cluster.nodes=10.71.184.237:7000,10.71.184.181:7000,10.71.184.217:7000

+ 10 - 2
src/main/resources/bootstrap.yml

@@ -3,6 +3,14 @@ server:
 spring:
   application:
     name: gateway
+  cloud:
+    nacos:
+      config:
+        #server-addr: 127.0.0.1:8848
+        server-addr: 10.71.5.163:80
+      discovery:
+        #server-addr: 127.0.0.1:8848
+        server-addr: 10.71.5.163:80
     gateway:
       httpclient:
         response-timeout: 300s
@@ -18,7 +26,7 @@ spring:
             fallbackUri: 'forward:/defaultFallback'
 
   profiles:
-    active: dev
+    active: uat
 logging:
   config: classpath:log4j2.xml
 
@@ -29,4 +37,4 @@ hystrix:
         isolation:
           strategy: SEMAPHORE
           thread:
-            timeoutInMilliseconds: 20000
+            timeoutInMilliseconds: 20000