-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzuul_config.yml
47 lines (47 loc) · 1.45 KB
/
zuul_config.yml
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
spring:
profiles:
active: dev
---
server:
port: 9527
spring:
application:
name: microservice-zuul-gateway
profiles: dev
eureka:
client:
service-url:
defaultZone: http://localhost:7001/eureka
instance:
instance-id: gateway-9527.com #显示的名字而已
prefer-ip-address: true
zuul:
routes:
haiGou.serviceId: user-provider
haiGou.path: /aigou/** #路由映射:/sean/**这个路径的访问都路由到serverId服务处理
product.serviceId: product-provider
product.path: /aigou/** #路由映射:/sean/**这个路径的访问都路由到serverId服务处理
ignored-services: "*" # 安全加固:忽略这个服务,如果要忽略所有的服务, “*”
prefix: "/mt" # 统一前缀
---
server:
port: 9528
spring:
application:
name: microservice-zuul-gateway-test
profiles: test
eureka:
client:
service-url:
defaultZone: http://localhost:7001/eureka
instance:
instance-id: gateway-9528.com #显示的名字而已
prefer-ip-address: true
zuul:
routes:
haiGou.serviceId: user-provider
haiGou.path: /aigou/** #路由映射:/sean/**这个路径的访问都路由到serverId服务处理
product.serviceId: product-provider
product.path: /aigou/** #路由映射:/sean/**这个路径的访问都路由到serverId服务处理
ignored-services: "*" # 安全加固:忽略这个服务,如果要忽略所有的服务, “*”
prefix: "/mt" # 统一前缀