Commit 41bd1e788b2ceabd4848a44a94e44f8546fada11

Authored by luotong
2 parents fc3a9aeb 9c59ca07

Merge branch 'master' into 'master'

gateway添加zuul 超时时间



See merge request !17
class-service.yml
@@ -138,4 +138,9 @@ eureka: @@ -138,4 +138,9 @@ eureka:
138 registerWithEureka: true 138 registerWithEureka: true
139 fetchRegistry: false 139 fetchRegistry: false
140 serviceUrl: 140 serviceUrl:
141 - defaultZone: http://discovery:15200/eureka/  
142 \ No newline at end of file 141 \ No newline at end of file
  142 + defaultZone: http://discovery:15200/eureka/
  143 +
  144 +# 一些公共的常量配置
  145 +apiConfig:
  146 + resourceGaoXiaoBangUrl: https://resource.gaoxiaobang.com
  147 + usrLocalTomcatTempLocation: /usr/local/tomcat/temp
143 \ No newline at end of file 148 \ No newline at end of file
gateway.yml
@@ -25,12 +25,22 @@ zuul: @@ -25,12 +25,22 @@ zuul:
25 #url: http://class-service:16200 25 #url: http://class-service:16200
26 serviceId: class-service 26 serviceId: class-service
27 27
  28 +hystrix:
  29 + command:
  30 + default:
  31 + execution:
  32 + isolation:
  33 + thread:
  34 + timeoutInMilliseconds: 10000
  35 +
28 #这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建) 36 #这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建)
29 #为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建) 37 #为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建)
30 ribbon: 38 ribbon:
31 eureka: 39 eureka:
32 enabled: true 40 enabled: true
33 UseIPAddrForServer: true 41 UseIPAddrForServer: true
  42 + ReadTimeout: 5000
  43 + ConnectTimeout: 10000
34 44
35 45
36 eureka: 46 eureka:
@@ -95,4 +105,7 @@ cas: @@ -95,4 +105,7 @@ cas:
95 casServerUrlPrefix: https://cas.gaoxiaobang.com/ 105 casServerUrlPrefix: https://cas.gaoxiaobang.com/
96 casServerLoginUrl: https://cas.gaoxiaobang.com/login 106 casServerLoginUrl: https://cas.gaoxiaobang.com/login
97 casServerLogoutUrl: https://cas.gaoxiaobang.com/logout 107 casServerLogoutUrl: https://cas.gaoxiaobang.com/logout
98 - ignorePattern: (^(/mvc/goto/)|(\.ico)|(/js)|(/image)|(/css)|(/fonts)|(/api)|(/downloadfile))|(.jsp$)  
99 \ No newline at end of file 108 \ No newline at end of file
  109 + ignorePattern: (^(/mvc/goto/)|(\.ico)|(/js)|(/image)|(/css)|(/fonts)|(/api)|(/downloadfile))|(.jsp$)
  110 +
  111 +tenant:
  112 + tenantId: 438