From 6109bf4584fa9731b183f3785b6210d6b0bb27d9 Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 18 Jan 2026 21:36:30 -0800 Subject: [PATCH] fix(kong): remove ws/wss protocols from WebSocket route MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Kong 会自动处理 HTTP -> WebSocket 升级,route protocols 只需要 http/https Co-Authored-By: Claude Opus 4.5 --- backend/api-gateway/kong.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/api-gateway/kong.yml b/backend/api-gateway/kong.yml index 4b3246b7..ddc36404 100644 --- a/backend/api-gateway/kong.yml +++ b/backend/api-gateway/kong.yml @@ -326,6 +326,7 @@ services: # --------------------------------------------------------------------------- # Trading Service WebSocket - 价格实时推送 # WebSocket 连接: wss://api.xxx.com/ws/price -> ws://192.168.1.111:3022/price + # Kong 会自动处理 HTTP -> WebSocket 升级,所以 protocols 只需要 http/https # --------------------------------------------------------------------------- - name: trading-ws-service url: http://192.168.1.111:3022 @@ -337,8 +338,6 @@ services: protocols: - http - https - - ws - - wss # --------------------------------------------------------------------------- # Mining Admin Service 2.0 - 挖矿管理后台服务