Direct connections to the server (without intermediate nginx) happily live
for many hours.
What option should I change to fix that?
There is proxy_read_timeout (Module ngx_http_proxy_module)
which as well applies to WebSocket connections. You have to bump
it if your backend do not send anything for a long time.
Alternatively, you may configure your backend to send websocket
ping frames periodically to reset the timeout (and check if the
connection is still alive).
There is proxy_read_timeout (Module ngx_http_proxy_module)
which as well applies to WebSocket connections. You have to bump
it if your backend do not send anything for a long time.
Alternatively, you may configure your backend to send websocket
ping frames periodically to reset the timeout (and check if the
connection is still alive).