Push WesocketChanges

This commit is contained in:
2025-09-03 17:33:36 +02:00
parent 1a377517a6
commit 915ed53b42
2 changed files with 60 additions and 4 deletions

View File

@@ -19,14 +19,25 @@
# Wichtig für Kamera-Zugriff
Header always set Permissions-Policy "camera=self, microphone=()"
# Reverse Proxy zu Node.js
# WebSocket Support - MUSS vor dem generellen Proxy stehen
RewriteEngine On
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/?(.*) "ws://localhost:3000/$1" [P,L]
# Socket.IO spezifische WebSocket-Routen
ProxyPass /socket.io/ ws://localhost:3000/socket.io/
ProxyPassReverse /socket.io/ ws://localhost:3000/socket.io/
# Standard HTTP/HTTPS Reverse Proxy zu Node.js
ProxyPreserveHost On
ProxyPass /socket.io/ !
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
# WebSocket Support für Live-Updates
ProxyPass /socket.io/ ws://localhost:3000/socket.io/
ProxyPassReverse /socket.io/ ws://localhost:3000/socket.io/
# WebSocket Proxy-Einstellungen
ProxyTimeout 3600
ProxyBadHeader Ignore
# Logging
ErrorLog ${APACHE_LOG_DIR}/ninjaserver_ssl_error.log