Commit a4b8b71c by chamberone

网关配置更新

1 parent 514cdfb5
Showing with 6 additions and 30 deletions
......@@ -2,46 +2,22 @@ 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: order
uri: lb://project-order
predicates:
- Path=/order/**
- id: gis
uri: lb://gis
uri: lb://project-gis
predicates:
- Path=/gis/**
- id: district
uri: lb://district
uri: lb://project-district
predicates:
- Path=/district/**
- id: order
uri: lb://order
predicates:
- Path=/order/**
auth:
path: /test/**,/user/**,/v1/**,/gis/** # 需要认证的路边列表,多个用逗号连接
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!