Connectivity Issues with n8n Workflows

Thank you so much for the help, @Jon! The configuration you sent me didn’t work, but I disabled some buffering and cache, and it worked (I found this information in another post here in the community).

For anyone facing the same issue, in the end, my nginx looked like this:

server {
    listen 80;
    server_name n8n-xxxx.kiskadi.com;

    location / {
        return 301 https://$host$request_uri;
    }
}
server {
    listen 443 ssl;
    server_name n8n-xxxx.kiskadi.com;

    ssl_certificate /etc/letsencrypt/live/n8n-xxxx.kiskadi.com/fullchain.pem; 
    ssl_certificate_key /etc/letsencrypt/live/n8n-xxxx.kiskadi.com/privkey.pem;
    include /etc/letsencrypt/options-ssl-nginx.conf; 
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;

    location / {
        proxy_pass http://localhost:5678;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        # To make the websocket work, add the following lines to your nginx:
        proxy_set_header Connection 'Upgrade';
        proxy_set_header Upgrade $http_upgrade;
        proxy_http_version 1.1;
        proxy_buffering off;
        proxy_cache off;
        chunked_transfer_encoding off;
    }
}
1 Like