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