project-gateway.yaml
1.15 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
spring:
cloud:
gateway:
routes:
- id: placeOrder
uri: lb://project-order
predicates:
- Path=/order/create
- id: queryStorage
uri: lb://project-storage
predicates:
- Path=/storage/
- id: queryAccount
uri: lb://project-account
predicates:
- Path=/account/
- id: praiseItemRocketMQ
uri: lb://project-provider
predicates:
- Path=/praise/rocketmq
- id: praiseItemSentinel
uri: lb://project-provider
predicates:
- Path=/praise/sentinel
- id: queryPraise
uri: lb://project-consumer
predicates:
- Path=/praise/query
- id: user
uri: lb://user
predicates:
- Path=/user/**, /v1/team/**, /v1/user/**
- id: gis
uri: lb://gis
predicates:
- Path=/gis/**
- id: district
uri: lb://district
predicates:
- Path=/district/**
auth:
path: /test/**,/user/**,/v1/**,/gis/** # 需要认证的路边列表,多个用逗号连接