feat: 添加争议微服务,支持订单争议流程
This commit is contained in:
+32
-4
@@ -285,6 +285,22 @@ static_resources:
|
||||
cluster: shop_api_cluster
|
||||
timeout: 30s
|
||||
|
||||
- match:
|
||||
safe_regex:
|
||||
google_re2: {}
|
||||
regex: "^/api/v1/orders/[0-9]+/review.*"
|
||||
route:
|
||||
cluster: review_api_cluster
|
||||
timeout: 30s
|
||||
|
||||
- match:
|
||||
safe_regex:
|
||||
google_re2: {}
|
||||
regex: "^/api/v1/orders/[0-9]+/dispute$"
|
||||
route:
|
||||
cluster: dispute_api_cluster
|
||||
timeout: 30s
|
||||
|
||||
- match:
|
||||
prefix: /api/v1/orders
|
||||
route:
|
||||
@@ -350,11 +366,9 @@ static_resources:
|
||||
disabled: true
|
||||
|
||||
- match:
|
||||
safe_regex:
|
||||
google_re2: {}
|
||||
regex: "^/api/v1/orders/[0-9]+/review.*"
|
||||
prefix: /api/v1/disputes
|
||||
route:
|
||||
cluster: review_api_cluster
|
||||
cluster: dispute_api_cluster
|
||||
timeout: 30s
|
||||
|
||||
- match:
|
||||
@@ -790,6 +804,20 @@ static_resources:
|
||||
address: review-api
|
||||
port_value: 8888
|
||||
|
||||
- name: dispute_api_cluster
|
||||
connect_timeout: 2s
|
||||
type: STRICT_DNS
|
||||
lb_policy: ROUND_ROBIN
|
||||
load_assignment:
|
||||
cluster_name: dispute_api_cluster
|
||||
endpoints:
|
||||
- lb_endpoints:
|
||||
- endpoint:
|
||||
address:
|
||||
socket_address:
|
||||
address: dispute-api
|
||||
port_value: 8888
|
||||
|
||||
- name: authz_adapter_cluster
|
||||
connect_timeout: 0.5s
|
||||
type: STRICT_DNS
|
||||
|
||||
Reference in New Issue
Block a user