houweiyu il y a 4 ans
Parent
commit
8a2f53c15e

+ 4 - 0
src/main/resources/application-dev.properties

@@ -8,3 +8,7 @@ spring.redis.jedis.pool.max-wait=-1
 spring.redis.jedis.pool.min-idle=0
 spring.redis.database=0
 spring.redis.password=
+
+
+spring.cloud.nacos.config.server-addr=127.0.0.1:8848
+spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848

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

@@ -1,11 +1,14 @@
 
 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
+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.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=QBzhHTxfcYLTs0n5J5VQ
+spring.redis.password=m8P6JugfYevMBi8bUnlu
+
+spring.cloud.nacos.config.server-addr=10.71.9.205:80
+spring.cloud.nacos.discovery.server-addr=10.71.9.205:80
 

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

@@ -10,3 +10,5 @@ spring.redis.database=0
 spring.redis.password=
 
 
+spring.cloud.nacos.config.server-addr=127.0.0.1:8848
+spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848

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

@@ -0,0 +1,14 @@
+
+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
+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=QBzhHTxfcYLTs0n5J5VQ
+
+spring.cloud.nacos.config.server-addr=10.71.5.163:80
+spring.cloud.nacos.discovery.server-addr=10.71.5.163:80
+

+ 18 - 0
src/main/resources/application.properties

@@ -0,0 +1,18 @@
+
+server.port=8084
+spring.application.name=gateway
+spring.profiles.active=prod
+#spring.profiles.active=uat
+#spring.profiles.active=sit
+#spring.profiles.active=dev
+
+logging.config=classpath:log4j2.xml
+
+spring.cloud.gateway.httpclient.pool.max-idle-time=10000
+spring.cloud.gateway.discovery.locator.enabled=false
+spring.cloud.gateway.default-filters.name=Hystrix
+spring.cloud.gateway.default-filters.args.name=default
+spring.cloud.gateway.default-filters.args.fallbackUri='forward:/defaultFallback'
+
+
+hystrix.command.default.execution.isolation.strategy.SEMAPHORE.thread.timeoutInMilliseconds=20000

+ 0 - 39
src/main/resources/bootstrap.yml

@@ -1,39 +0,0 @@
-server:
-  port: 8084
-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:
-        pool:
-          max-idle-time: 10000
-      discovery:
-        locator:
-          enabled: true
-      default-filters:
-        - name: Hystrix
-          args:
-            name : default
-            fallbackUri: 'forward:/defaultFallback'
-
-  profiles:
-    active: prod
-logging:
-  config: classpath:log4j2.xml
-
-hystrix:
-  command:
-    default:
-      execution:
-        isolation:
-          strategy: SEMAPHORE
-          thread:
-            timeoutInMilliseconds: 20000