gateway.yml
2.11 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
server:
port: 15300
spring:
profiles: development
cloud:
config:
discovery:
enabled: true
endpoints:
restart:
enabled: true
shutdown:
enabled: true
health:
sensitive: false
zuul:
routes:
users:
#url: http://user-service:16100
serviceId: user-service
classes:
#url: http://class-service:16200
serviceId: class-service
#这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建)
#为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建)
ribbon:
eureka:
enabled: true
UseIPAddrForServer: true
eureka:
instance:
hostname: gateway
client:
registerWithEureka: true
fetchRegistry: true
serviceUrl:
defaultZone: http://discovery:15200/eureka/
cas:
encoding: UTF-8
casServerUrlPrefix: https://cas.gaoxiaobang.com/
casServerLoginUrl: https://cas.gaoxiaobang.com/login
casServerLogoutUrl: https://cas.gaoxiaobang.com/logout
ignorePattern: (^(/mvc/goto/)|(\.ico)|(/js)|(/image)|(/css)|(/fonts)|(/api)|(/downloadfile))|(.jsp$)
tenant:
tenantId: 438
---
spring:
profiles: production
cloud:
config:
discovery:
enabled: true
endpoints:
restart:
enabled: true
shutdown:
enabled: true
health:
sensitive: false
zuul:
routes:
users:
#url: http://user-service:16100
serviceId: user-service
classes:
#url: http://class-service:16200
serviceId: class-service
ribbon:
eureka:
enabled: false
eureka:
instance:
hostname: gateway
client:
registerWithEureka: true
fetchRegistry: false
serviceUrl:
defaultZone: http://discovery:15200/eureka/
cas:
encoding: UTF-8
casServerUrlPrefix: https://cas.gaoxiaobang.com/
casServerLoginUrl: https://cas.gaoxiaobang.com/login
casServerLogoutUrl: https://cas.gaoxiaobang.com/logout
ignorePattern: (^(/mvc/goto/)|(\.ico)|(/js)|(/image)|(/css)|(/fonts)|(/api)|(/downloadfile))|(.jsp$)