ws配置
This commit is contained in:
@@ -29,6 +29,12 @@ spring:
|
||||
- DedupeResponseHeader=Access-Control-Allow-Origin Access-Control-Allow-Credentials
|
||||
# ---------- 路由配置 ----------
|
||||
routes:
|
||||
# WebSocket 路由:直接透传到后端 /notification/{id}
|
||||
# 注意:必须放在 aida-back 之前,确保优先匹配
|
||||
- id: aida-back-websocket
|
||||
uri: lb://aida-back
|
||||
predicates:
|
||||
- Path=/notification/**
|
||||
- id: aida-back
|
||||
uri: lb://aida-back
|
||||
predicates:
|
||||
@@ -138,7 +144,7 @@ gateway:
|
||||
- /aida/api/alipay-hk/trade/notify
|
||||
- /aida/api/stripe/trade/notify
|
||||
# Notification
|
||||
- /aida/notification/**
|
||||
- /notification/**
|
||||
|
||||
logging:
|
||||
level:
|
||||
|
||||
Reference in New Issue
Block a user