Commit a4b8b71c by chamberone

网关配置更新

1 parent 514cdfb5
Showing with 6 additions and 30 deletions
...@@ -2,46 +2,22 @@ spring: ...@@ -2,46 +2,22 @@ spring:
cloud: cloud:
gateway: gateway:
routes: 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 - id: user
uri: lb://user uri: lb://user
predicates: predicates:
- Path=/user/**, /v1/team/**, /v1/user/** - Path=/user/**, /v1/team/**, /v1/user/**
- id: order
uri: lb://project-order
predicates:
- Path=/order/**
- id: gis - id: gis
uri: lb://gis uri: lb://project-gis
predicates: predicates:
- Path=/gis/** - Path=/gis/**
- id: district - id: district
uri: lb://district uri: lb://project-district
predicates: predicates:
- Path=/district/** - Path=/district/**
- id: order
uri: lb://order
predicates:
- Path=/order/**
auth: auth:
path: /test/**,/user/**,/v1/**,/gis/** # 需要认证的路边列表,多个用逗号连接 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!