error: unable to upgrade connection: <html><body><h1>502 Bad Gateway<h1>The server returned an invalid or incomplete response
frontend http-in acl is_websocket hdr(Upgrade) -i WebSocket acl is_websocket hdr_beg(Host) -i ws use_backend websocket-backend if is_websocketbackend websocket-backend server ws1 x.x.x.x check