Fix WebSocket

This commit is contained in:
2026-01-07 15:13:07 +03:00
Unverified
parent d2b5f6e2da
commit 94a4d8c380
4 changed files with 12 additions and 10 deletions
+7 -1
View File
@@ -16,7 +16,13 @@ app.use('/api', createProxyMiddleware({
ws: true
}));
// WebSockets are handled by the general API proxy above
// Direct WebSocket proxy for chat - bypass gateway
app.use('/api/chat/ws', createProxyMiddleware({
target: 'http://messaging_service:8305',
changeOrigin: true,
pathRewrite: { '^/api/chat/ws': '/messaging/chat/ws' },
ws: true
}));
// Serve static files
app.use(express.static(resolve(filePath)));