SSE closes after a couple of minutes

I’m running Drone behind NGINX and after a couple of minutes, the SSE connection closes with the following error in console:


The connection to https://REMOVED/api/stream was interrupted while the page was loading.

After that, no more live updates until i reload the page. I’m using Firefox 67.0 on Ubuntu 19.04.

nginx needs to be configured explicitly to work with SSE. I recommend contact nginx support or using the nginx community to get assistance with SSE configuration.