Ändere WebSocket-Proxy-Konfiguration in Apache und Frontend: Aktualisiere die Ports für Daemon-WebSocket-Verbindungen von 2020 auf 4551. Dies verbessert die Konsistenz der Verbindungen und stellt sicher, dass die richtigen Endpunkte verwendet werden.

This commit is contained in:
Torsten Schulz (local)
2025-09-04 00:17:20 +02:00
parent a9adae971b
commit 5f756d3e7b
2 changed files with 26 additions and 25 deletions

View File

@@ -27,8 +27,8 @@
ProxyPassReverse "/socket.io/" "http://localhost:2020/socket.io/"
# WebSocket-Proxy für Daemon-Verbindungen
ProxyPass "/ws/" "ws://localhost:2020/"
ProxyPassReverse "/ws/" "ws://localhost:2020/"
ProxyPass "/ws/" "ws://localhost:4551/"
ProxyPassReverse "/ws/" "ws://localhost:4551/"
# WebSocket-Upgrade-Header für Socket.io
RewriteEngine on
@@ -39,7 +39,7 @@
# WebSocket-Upgrade-Header für Daemon-Verbindungen
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/ws/(.*)$ "ws://localhost:2020/$1" [P,L]
RewriteRule ^/ws/(.*)$ "ws://localhost:4551/$1" [P,L]
ErrorLog /var/log/apache2/yourpart.error.log
CustomLog /var/log/apache2/yourpart.access.log combined