cloud-service.yml
1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
server:
port: 16500
spring:
profiles: development
redis:
pool:
max-idle: 100
min-idle: 10
max-active: 1000
max-wait: 100000
redis1:
database: 0
host: 192.168.30.100
port: 6379
password: 123456
redis2:
database: 0
host: 192.168.30.100
port: 6380
password: 123456
jackson:
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
deserialization.accept_empty_string_as_null_object: true
encrypt:
failOnError: false
zuul:
host:
connect-timeout-millis: 500000
socket-timeout-millis: 600000
routes:
gxbapp:
path: /study/**
url: http://192.168.30.250:30310/hybird-web
hystrix:
command:
default:
execution:
timeout:
enabled: true
isolation:
thread:
timeoutInMilliseconds: 60000
#这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建)
#为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建)
ribbon:
eureka:
enabled: false
UseIPAddrForServer: true
ReadTimeout: 5000
ConnectTimeout: 10000
eureka:
instance:
hostname: cloud-service
perferIpAddress: true
instance-id: ${spring.cloud.client.ipAddress}:${server.port}
leaseRenewalIntervalInSeconds: 5
leaseExpirationDurationInSeconds: 15
client:
registerWithEureka: true
fetchRegistry: true
serviceUrl:
defaultZone: http://discovery:15200/eureka/
healthcheck:
enabled: true
# 一些公共的常量配置