@meso @caohuak @pernia I believe this the main problem all rest looks ok > match...

@zer0unplanned@friendica.rogueproject.org

@meso @caohuak @pernia I believe this the main problem all rest looks ok > match request header append "Connection" value "upgrade" it fires on every request that matches, so a plain GET /activities arrives at Mitra with Connection: upgrade attached. Which is wrong for a non upgrade request.
The match ... append line is a hack that pollutes every request with a wrong header and doesn't actually enable the internal mode switch relayd needs. One line I suggest to replace is

http protocol mitra {
    ...
    http websockets
    ...
}

The client already sends those headers. A WebSocket handshake starts as a normal HTTP GET with:

GET /activities HTTP/1.1
Host: nexus.asbestos.cafe
Connection: Upgrade
Upgrade: websocket
Sec-WebSocket-Key: ...

relayd doesn't need to add Connection: upgrade as the browser/client puts it there itself. The match ... append line was fighting a problem that didn't exist.