Commit 9c59ca076f48b698bf99251258c0e6801d681c83
1 parent
fc3a9aeb
gateway添加zuul 超时时间
Showing
2 changed files
with
20 additions
and
2 deletions
class-service.yml
| ... | ... | @@ -138,4 +138,9 @@ eureka: |
| 138 | 138 | registerWithEureka: true |
| 139 | 139 | fetchRegistry: false |
| 140 | 140 | serviceUrl: |
| 141 | - defaultZone: http://discovery:15200/eureka/ | |
| 142 | 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 | 148 | \ No newline at end of file | ... | ... |
gateway.yml
| ... | ... | @@ -25,12 +25,22 @@ zuul: |
| 25 | 25 | #url: http://class-service:16200 |
| 26 | 26 | serviceId: class-service |
| 27 | 27 | |
| 28 | +hystrix: | |
| 29 | + command: | |
| 30 | + default: | |
| 31 | + execution: | |
| 32 | + isolation: | |
| 33 | + thread: | |
| 34 | + timeoutInMilliseconds: 10000 | |
| 35 | + | |
| 28 | 36 | #这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建) |
| 29 | 37 | #为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建) |
| 30 | 38 | ribbon: |
| 31 | 39 | eureka: |
| 32 | 40 | enabled: true |
| 33 | 41 | UseIPAddrForServer: true |
| 42 | + ReadTimeout: 5000 | |
| 43 | + ConnectTimeout: 10000 | |
| 34 | 44 | |
| 35 | 45 | |
| 36 | 46 | eureka: |
| ... | ... | @@ -95,4 +105,7 @@ cas: |
| 95 | 105 | casServerUrlPrefix: https://cas.gaoxiaobang.com/ |
| 96 | 106 | casServerLoginUrl: https://cas.gaoxiaobang.com/login |
| 97 | 107 | casServerLogoutUrl: https://cas.gaoxiaobang.com/logout |
| 98 | - ignorePattern: (^(/mvc/goto/)|(\.ico)|(/js)|(/image)|(/css)|(/fonts)|(/api)|(/downloadfile))|(.jsp$) | |
| 99 | 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 | ... | ... |