trunk-rs/trunk

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

開放

#992 建立於 2025年6月18日

 (2 則留言) (0 個反應) (0 位負責人)Rust (315 個分叉)auto 404
good first issuehelp wanted

倉庫指標

星標
 (4,347 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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 ?

貢獻者指南