The issue was probably more complex then. Could shed some light on more setup details and attempts? Sometimes docker has odd networking that needs to be handled.
Or the nginx reverse proxy needs to be adjusted. We’ve seen many times if the socket isn’t routed correctly you disconnect from n8n for example.
Could you provide your docker compose and nginx config? (removing any PIIs)
Heres the setup I use. But I use it with docker, I am unsure how node deployment works with this setup. I also dont enable redirects, I think because it screws with cloudflare redirects. No 301.
Are you using certbot as well? Setup seems different from what certbot --nginx generates
I tried setting up SSL directly too, but n8n didn’t serve HTTPS until I also set N8N_PORT=443 and ran it with elevated privileges. Also make sure no firewall is blocking 443. I’m not using certbot—just passed my cert and key manually like you.