n8n 自建部署与备份规划
原名:n8n-self-hosting
整理 Linux、容器、HTTPS、任务运行器及恢复检查的部署步骤。
中文 Skills 技能说明
准备在自己的服务器运行 n8n 时,可先明确单实例还是队列模式。提供服务器范围、域名、时区、容量、备份和访问规则,技能整理 Docker Compose、反向代理、HTTPS、数据库及任务运行器方案,交付配置草稿与验收清单。需要自有服务器、合法软件许可和运维权限,技能的 MIT 许可不等于 n8n 软件许可;资源和域名费用另计。密钥在服务器安全生成保存,安装、开放端口和上线需批准,备份必须演练恢复,不能只凭容器启动判断完成。
上游能力依据
上游原始适用说明:Deploy a production self-hosted n8n end-to-end to a fresh Linux VM over SSH, using Docker Compose behind a Caddy reverse proxy with automatic HTTPS. Use whenever the user wants to self-host, install, provision, or deploy n8n on their own server/VPS (Hetzner, DigitalOcean, AWS EC2, bare metal) — single/regular mode or queue mode with workers — or to update, back up, restore, or harden such an instance, or make Python Code nodes run on it (task runners). For SELF-HOSTED n8n (Docker), not n8n Cloud and not building workflows. The skill makes the agent ask single-vs-queue first, collect domain/SSH/timezone inputs, generate fresh secrets on the box, and bring the stack up with TLS. Trigger on "deploy n8n", "self-host n8n", "n8n docker compose", "n8n queue mode / workers", "n8n reverse proxy / SSL", "back up / update my n8n", "Python runner unavailable" / "n8nio/runners sidecar", or "we don't want to give every user the OAuth client secret" / "enable Sign in with Google" (credential overwrites).
上游 SKILL.md 主要章节(保留原文标题):
- Rule 0 — choose the mode (ask the user)
- Rule 1 — secret hygiene (non-negotiable)
- Inputs to collect up front
- The deploy flow
- 1. Preflight (the cheapest failure is the one you catch here)
- 2. Install Docker (if absent)
- 3. Lay down the project
- 4. Fill .env + generate secrets
- 5. Firewall
- 6. Launch
使用边界
先核对运行环境、账号、区域、依赖和最小权限。创建资源、改配置、发布服务或产生费用前必须让使用者确认。
作者、翻译与许可证
- 原作者
- Romuald Członkowski 与 n8n-skills contributors
- 中文翻译
- CEOFans翻译
- 许可证
- MIT
- 上游来源
- https://github.com/czlonkowski/n8n-skills/tree/e037563e101749e630e6688d121d04529fe6ee7b/skills/n8n-self-hosting
适用范围
平台:linux、macos、windows;标签:开发运维、n8n 自建部署与备份规划、开源技能
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。