Loopback als Vorgabe, verständliche Meldung bei Mixed Content

Die feste Adresse 192.168.180.135 der SwyxTray-App wird überall durch
127.0.0.1 ersetzt: Die App läuft auf dem Arbeitsplatz des Anwenders, die
Verbindung bleibt damit auf dem Rechner und braucht keine Firewall-Freigabe.

Scheitert der Verbindungsaufbau, weil eine über HTTPS ausgelieferte Seite
kein unverschlüsseltes ws:// öffnen darf, meldet der Browser nur "The
operation is insecure." – describeConnectFailure() benennt stattdessen den
Grund und den Ausweg (wss:// oder Loopback).

node_modules/ wird nun auf jeder Ebene ignoriert, nicht nur unter frontend/.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-08-24 17:16:41 +02:00
co-authored by Claude Opus 5
parent 01594a1f3d
commit 521ceb044b
10 changed files with 60 additions and 16 deletions
@@ -8,7 +8,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(prefix = "app.websocket")
public record WebSocketProperties(String host, int port, String path, boolean secure) {
/** Fertige URL, z. B. ws://192.168.180.135:8080/ws */
/** Fertige URL, z. B. ws://127.0.0.1:8080/ws */
public String url() {
return (secure ? "wss" : "ws") + "://" + host + ":" + port + path;
}
@@ -13,7 +13,7 @@ server.port=8080
# Adresse des WebSocket-Servers, die das Frontend über /api/config als
# Verbindungsziel bekommt. Unabhängig vom Port dieser Anwendung.
app.websocket.host=192.168.180.135
app.websocket.host=127.0.0.1
app.websocket.port=17654
app.websocket.path=/ws
app.websocket.secure=false