trunk-rs/trunk

can't set 'insecure' flag for websocket proxies with server

Offen

#992 geöffnet am 18.06.2025

 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (315 Forks)auto 404
good first issuehelp wanted

Repository-Metriken

Stars
 (4.347 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

when trying to proxy a websocket path like this:

[[proxy]]
backend = "wss://192.168.0.50:8443/some/path"
ws = true
insecure = true

When using trunk serve then, I get the following error when trying to establish the websocket connection:

2025-06-18T07:40:03.106229Z ERROR error establishing WebSocket connection to backend wss://192.168.0.50:8443/some/path for proxy error=Io(Custom { kind: InvalidData, error: InvalidCertificate(UnknownIssuer) })

is there any way currently to make this work with self-signed/untrusted certificates ?

Contributor Guide