UI Connection Lost - Server-Sent Events

This is my super basic nginx proxy setup

server {
    listen 80 default_server;
    listen [::]:80 default_server;

    # SSL configuration
    #
    listen 443 ssl default_server;
    listen [::]:443 ssl default_server;


    ssl_certificate /etc/ssl/cert-with-chain.crt;
    ssl_certificate_key     /etc/ssl/server.key;
    
    server_name _;

    location / {
        proxy_pass http://127.0.0.1:5678;

        # server sent events
        proxy_set_header Connection '';
        proxy_http_version 1.1;
        chunked_transfer_encoding off;
        proxy_buffering off;
        }
}