WebSocket connection drops after 60s behind nginx
nginx 1.24 reverse proxying a WebSocket app. Connection works initially but dies after exactly 60 seconds with a 1006 close code. Direct to the backend (port 3001) it stays up for hours. nginx config has: proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection upgrade. What is the 60s mystery? I have the upgrade headers set correctly as far as I can tell, and the app logs show the connection opening and then closing a minute later with no application error. The number 60 is suspiciously round, which is why I am asking here.
4 replies