This commit is contained in:
2026-09-29 17:55:54 +08:00
parent 41d8387cd5
commit 54ad26c607
111 changed files with 1837 additions and 962 deletions
+29 -1
View File
@@ -42,6 +42,14 @@ spring:
enabled: false
lower-case-service-id: true
routes:
- id: lastleg-service
uri: lb://lastleg-service
predicates:
- Path=/api/merchant/v1/last-leg/**,/api/platform/v1/last-leg/**,/api/pda/v1/last-leg/**
- id: warehouse-overseas-service
uri: lb://warehouse-overseas-service
predicates:
- Path=/api/platform/v1/overseas-warehouse-resources/**
- id: auth-service
uri: lb://auth-service
predicates:
@@ -83,6 +91,18 @@ spring:
predicates:
- Path=/api/platform/finance/v1/**,/api/client/finance/v1/**
# Swagger 文档聚合路由。
- id: lastleg-openapi
uri: lb://lastleg-service
predicates:
- Path=/lastleg-service/v3/api-docs/**
filters:
- StripPrefix=1
- id: warehouse-overseas-openapi
uri: lb://warehouse-overseas-service
predicates:
- Path=/warehouse-overseas-service/v3/api-docs/**
filters:
- StripPrefix=1
- id: auth-openapi
uri: lb://auth-service
predicates:
@@ -158,7 +178,9 @@ baiyue:
allow-credentials: ${CORS_ALLOW_CREDENTIALS:false}
max-age: ${CORS_MAX_AGE:3600}
security:
jwt-secret: ${JWT_SECRET:change-me-to-at-least-32-bytes-long-before-start}
jwk-set-uri: ${JWT_JWKS_URI:http://auth-service:9100/api/auth/.well-known/jwks.json}
issuer: ${JWT_ISSUER:auth-service}
audience: ${JWT_AUDIENCE:lastleg-api}
token-key-prefix: ${REDIS_TOKEN_KEY_PREFIX:baiyue:auth}
permit-paths:
- /api/pda-updates/**
@@ -183,6 +205,8 @@ baiyue:
- /integration-service/v3/api-docs/**
- /event-bridge-service/v3/api-docs/**
- /finance-service/v3/api-docs/**
- /lastleg-service/v3/api-docs/**
- /warehouse-overseas-service/v3/api-docs/**
management:
endpoints:
@@ -231,3 +255,7 @@ springdoc:
url: /event-bridge-service/v3/api-docs
- name: finance
url: /finance-service/v3/api-docs
- name: lastleg
url: /lastleg-service/v3/api-docs
- name: warehouse-overseas
url: /warehouse-overseas-service/v3/api-docs