Update Apache configuration and socket service for WebSocket support
This commit adds a ProxyTimeout setting for WebSocket connections in the Apache configuration, enhancing the server's ability to manage long-lived connections. Additionally, the socket service documentation is updated to clarify compatibility with both Apache and Nginx as reverse proxies. These changes improve the handling of real-time communication in the application.
This commit is contained in:
@@ -9,7 +9,7 @@ export const initializeSocketIO = (httpServer) => {
|
||||
credentials: true,
|
||||
methods: ['GET', 'POST']
|
||||
},
|
||||
// Wichtig für Reverse Proxy (Nginx): Path und Transports explizit setzen
|
||||
// Wichtig für Reverse Proxy (Apache/Nginx): Path und Transports explizit setzen
|
||||
path: '/socket.io/',
|
||||
transports: ['websocket', 'polling'],
|
||||
// Erlaube Upgrade von polling zu websocket
|
||||
|
||||
Reference in New Issue
Block a user