News for hackers. Stuff that matters.
Re:Server-Sent Events: an alternative to WebSockets by U1F984 on Saturday February 12, 2022 @05:44PM (#30317128)
The extra setup step for websocket should not be required: https://caddyserver.com/docs/v2-upgrade#proxy

I also had no problems with HAProxy, it worked with websockets without any issues or extra handling.

Re:Server-Sent Events: an alternative to WebSockets by francislavoie on Saturday February 12, 2022 @08:13PM (#30318101)
That's correct, just `reverse_proxy` alone is enough. The request matcher is only needed if you want to make the same request paths get proxied to your HTTP upstream if it doesn't have those websocket connection headers. But if you're always using a path like `/ws` for websockets then you don't need to match on headers.