宝塔docker 部署n8n最新版 Published on Nov 14, 2025 in 随笔 with 0 comment 如出现以下问题 ``` You have a connection issue or the server is down. n8n should reconnect automatically once the issue is resolved. ``` 目测是最新版本1.119.1的bug websocket链接有问题。。。 换成sse协议 docker文件这样配置: ``` environment: N8N_SECURE_COOKIE: false N8N_PROTOCOL: https WEBHOOK_URL: https://${N8N_HOST} N8N_PROXY_HOPS: "1" N8N_RUNNERS_ENABLED: true N8N_PUSH_BACKEND: sse ``` nginx这样配置: ``` #SSL-END # ====================== # n8n 反代主配置 # ====================== location / { proxy_pass http://127.0.0.1:5678; proxy_http_version 1.1; # 必须:Host + Forwarded headers proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; # SSE 推送配置(长连接) proxy_set_header Origin https://你的域名.com; proxy_buffering off; proxy_cache off; proxy_read_timeout 3600; } ``` 本文由 admin 创作,采用 知识共享署名4.0 国际许可协议进行许可。本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名。