2026-04-21 14:11:01 +08:00
|
|
|
|
# ============================================================
|
|
|
|
|
|
# aida-gateway - 本地配置(不区分环境)
|
|
|
|
|
|
# 公共配置(DB、Redis、RabbitMQ、MinIO、API Keys 等)由 Nacos 统一管理
|
|
|
|
|
|
# ============================================================
|
|
|
|
|
|
|
|
|
|
|
|
server:
|
|
|
|
|
|
port: 5569
|
|
|
|
|
|
|
|
|
|
|
|
spring:
|
|
|
|
|
|
application:
|
|
|
|
|
|
name: aida-gateway
|
2026-04-22 15:54:43 +08:00
|
|
|
|
cloud:
|
|
|
|
|
|
gateway:
|
|
|
|
|
|
routes:
|
|
|
|
|
|
- id: aida-back
|
|
|
|
|
|
uri: lb://aida-back
|
|
|
|
|
|
predicates:
|
|
|
|
|
|
- Path=/aida/**
|
|
|
|
|
|
filters:
|
|
|
|
|
|
- StripPrefix=1
|
|
|
|
|
|
- id: aida-seller
|
|
|
|
|
|
uri: lb://aida-seller
|
|
|
|
|
|
predicates:
|
|
|
|
|
|
- Path=/seller/**
|
|
|
|
|
|
filters:
|
|
|
|
|
|
- StripPrefix=1
|
|
|
|
|
|
- id: aida-python
|
|
|
|
|
|
uri: http://18.167.251.121:9994
|
|
|
|
|
|
predicates:
|
|
|
|
|
|
- Path=/python/**
|
2026-04-22 11:15:35 +08:00
|
|
|
|
# ---------- Knife4j 网关聚合配置 ----------
|
|
|
|
|
|
knife4j:
|
|
|
|
|
|
gateway:
|
|
|
|
|
|
enabled: true
|
|
|
|
|
|
# 手动指定下游服务的文档聚合,可以灵活应对不同服务的 API 版本或路径前缀
|
|
|
|
|
|
strategy: manual
|
|
|
|
|
|
routes:
|
2026-04-22 15:54:43 +08:00
|
|
|
|
- name: aida主服务
|
|
|
|
|
|
url: /aida/v3/api-docs
|
2026-04-22 11:15:35 +08:00
|
|
|
|
service-name: aida-back
|
2026-04-22 15:54:43 +08:00
|
|
|
|
context-path: /aida
|
2026-04-22 11:15:35 +08:00
|
|
|
|
order: 1
|
|
|
|
|
|
- name: 商家端服务 (Seller)
|
2026-04-22 15:54:43 +08:00
|
|
|
|
url: /seller/v3/api-docs
|
2026-04-22 11:15:35 +08:00
|
|
|
|
service-name: aida-seller
|
|
|
|
|
|
context-path: /seller
|
|
|
|
|
|
order: 2
|
|
|
|
|
|
|
2026-04-21 14:11:01 +08:00
|
|
|
|
# ---------- Gateway JWT 认证(gateway 独有) ----------
|
|
|
|
|
|
gateway:
|
|
|
|
|
|
auth:
|
2026-04-22 15:54:43 +08:00
|
|
|
|
jwt-secret: JWTSECRET
|
2026-04-21 14:11:01 +08:00
|
|
|
|
jwt-token-header: Authorization
|
|
|
|
|
|
jwt-token-prefix: Bearer-
|
|
|
|
|
|
blacklist-enabled: true
|
|
|
|
|
|
ignore-paths:
|
|
|
|
|
|
- /favicon.ico
|
|
|
|
|
|
- /doc.html
|
|
|
|
|
|
- /swagger-ui.html
|
2026-04-22 11:15:35 +08:00
|
|
|
|
- /swagger-ui
|
2026-04-21 14:11:01 +08:00
|
|
|
|
- /swagger-ui/**
|
|
|
|
|
|
- /swagger-resources/**
|
|
|
|
|
|
- /v2/api-docs
|
2026-04-22 11:15:35 +08:00
|
|
|
|
- /v2/api-docs/**
|
|
|
|
|
|
- /v3/api-docs
|
2026-04-21 14:11:01 +08:00
|
|
|
|
- /v3/api-docs/**
|
|
|
|
|
|
- /webjars/**
|
2026-04-22 11:15:35 +08:00
|
|
|
|
- /**/v3/api-docs/**
|
2026-04-21 14:11:01 +08:00
|
|
|
|
- /api/account/login
|
|
|
|
|
|
- /api/account/preLogin
|
|
|
|
|
|
- /api/designer/check
|
|
|
|
|
|
- /actuator/**
|
|
|
|
|
|
- /internal/**
|
|
|
|
|
|
- /api/account/sendEmail
|
|
|
|
|
|
- /api/account/noLoginRequired
|
|
|
|
|
|
- /api/account/resetPwd
|
|
|
|
|
|
- /api/account/designWorksRegister
|
|
|
|
|
|
- /api/account/questionnaire
|
|
|
|
|
|
- /api/account/schoolLogin
|
|
|
|
|
|
- /api/account/enterpriseLogin
|
|
|
|
|
|
- /api/account/organizationNameSearch
|
|
|
|
|
|
- /api/account/activateNewEmail
|
|
|
|
|
|
- /api/python/saveGeneratePicture
|
|
|
|
|
|
- /api/python/getLibraryByUserId
|
|
|
|
|
|
- /api/python/flush
|
|
|
|
|
|
- /api/account/healthy
|
|
|
|
|
|
- /api/third/party/**
|
|
|
|
|
|
- /api/element/initDefaultSysFile
|
|
|
|
|
|
- /api/ali-pay/trade/notify
|
|
|
|
|
|
- /api/paypal/ipn/back
|
|
|
|
|
|
- /api/alipay-hk/trade/notify
|
|
|
|
|
|
- /api/stripe/trade/notify
|
|
|
|
|
|
- /api/portfolio/**
|
|
|
|
|
|
- /api/global-award/**
|
|
|
|
|
|
- /api/llm/stream
|
|
|
|
|
|
- /notification/**
|
2026-04-22 15:54:43 +08:00
|
|
|
|
- /aida/api/account/login
|
|
|
|
|
|
- /aida/api/account/preLogin
|
|
|
|
|
|
- /aida/api/designer/check
|
|
|
|
|
|
- /aida/api/account/sendEmail
|
|
|
|
|
|
- /aida/api/account/noLoginRequired
|
|
|
|
|
|
- /aida/api/account/resetPwd
|
|
|
|
|
|
- /aida/api/account/designWorksRegister
|
|
|
|
|
|
- /aida/api/account/questionnaire
|
|
|
|
|
|
- /aida/api/account/schoolLogin
|
|
|
|
|
|
- /aida/api/account/enterpriseLogin
|
|
|
|
|
|
- /aida/api/account/organizationNameSearch
|
|
|
|
|
|
- /aida/api/account/activateNewEmail
|
|
|
|
|
|
- /aida/api/python/saveGeneratePicture
|
|
|
|
|
|
- /aida/api/python/getLibraryByUserId
|
|
|
|
|
|
- /aida/api/python/flush
|
|
|
|
|
|
- /aida/api/account/healthy
|
|
|
|
|
|
- /aida/api/third/party/**
|
|
|
|
|
|
- /aida/api/element/initDefaultSysFile
|
|
|
|
|
|
- /aida/api/ali-pay/trade/notify
|
|
|
|
|
|
- /aida/api/paypal/ipn/back
|
|
|
|
|
|
- /aida/api/alipay-hk/trade/notify
|
|
|
|
|
|
- /aida/api/stripe/trade/notify
|
|
|
|
|
|
- /aida/api/portfolio/**
|
|
|
|
|
|
- /aida/api/global-award/**
|
|
|
|
|
|
- /aida/api/llm/stream
|
|
|
|
|
|
- /aida/account/login
|
|
|
|
|
|
- /aida/account/preLogin
|
|
|
|
|
|
- /aida/designer/check
|
|
|
|
|
|
- /aida/account/sendEmail
|
|
|
|
|
|
- /aida/account/noLoginRequired
|
|
|
|
|
|
- /aida/account/resetPwd
|
|
|
|
|
|
- /aida/account/designWorksRegister
|
|
|
|
|
|
- /aida/account/questionnaire
|
|
|
|
|
|
- /aida/account/schoolLogin
|
|
|
|
|
|
- /aida/account/enterpriseLogin
|
|
|
|
|
|
- /aida/account/organizationNameSearch
|
|
|
|
|
|
- /aida/account/activateNewEmail
|
|
|
|
|
|
- /aida/python/saveGeneratePicture
|
|
|
|
|
|
- /aida/python/getLibraryByUserId
|
|
|
|
|
|
- /aida/python/flush
|
|
|
|
|
|
- /aida/account/healthy
|
|
|
|
|
|
- /aida/third/party/**
|
|
|
|
|
|
- /aida/element/initDefaultSysFile
|
|
|
|
|
|
- /aida/ali-pay/trade/notify
|
|
|
|
|
|
- /aida/paypal/ipn/back
|
|
|
|
|
|
- /aida/alipay-hk/trade/notify
|
|
|
|
|
|
- /aida/stripe/trade/notify
|
|
|
|
|
|
- /aida/portfolio/**
|
|
|
|
|
|
- /aida/global-award/**
|
|
|
|
|
|
- /aida/llm/stream
|
2026-04-21 14:11:01 +08:00
|
|
|
|
|
|
|
|
|
|
logging:
|
|
|
|
|
|
level:
|
|
|
|
|
|
com.aida.gateway: debug
|