Skip to content

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

Open

Description

@flumm

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 ?

Activity

  1. ctron commented on Jun 26, 2025

    @ctron
    Collaborator

    I think insecure=true should be the way. Maybe we are missing something there.

  2. added theissue type on Jun 26, 2025
  3. chunnoo commented on Aug 4, 2025

    @chunnoo

    Created a pull request for this: #1007

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions