Caddy is the HTTP/2 web server with automatic HTTPS. I wanted to proxy pass websocket service using Caddy but it didn't work:wss.example.org {
    proxy / myservice:8083 {
        header_upstream Host {host}
        header_upstream X-Real-IP {remote}
    }
    tls [email protected]
}
In the documentation it is mentioned that
proxy can proxy pass web sockets too. The problem was about not using websocket inside of the proxy stanza, so we solved it using:wss.example.org {
    proxy / myservice:8083 { 
        header_upstream Host {host}
        header_upstream X-Real-IP {remote}
        websocket
    }
    tls [email protected]
}#webserver #caddy #proxy #proxy_pass #wss #ws #websocket
