Push WesocketChanges
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user