What self-hosting involves
- VPS or cloud serverRoot access, small to start
- n8n in DockerRuns your workflows
- HTTPS proxyProtects the editor and webhooks
- BackupsData volume and encryption key
n8n is a workflow automation tool. Self-hosting gives you control over data and cost, but you take on updates, security and backups.
What the server needs
- Root accessTo install Docker or Node.js.
- Persistent storageFor workflow data and credentials.
- Public address and HTTPSIf webhooks or triggers call your instance.
- Enough memoryStart small and watch usage.
Security and reliability checklist
- Put n8n behind HTTPS and a reverse proxy
- Protect the editor with strong authentication
- Keep n8n and the operating system updated
- Back up the data volume and encryption key, and test a restore
- Restrict the firewall to the ports you need
An unmanaged VPS is the usual low-cost choice. Choose a managed VPS if you want the host to handle updates, and check each provider’s terms for running automation workloads.
What does n8n need?
- A server where you can run Node.js or Docker, usually a small VPS.
- A database for persistence, with backups.
- HTTPS for webhooks.
- Enough memory for your workflows.
How do you run it safely?
Put it behind HTTPS with authentication, keep it updated, restrict access, store credentials securely and back up the data. Follow the n8n hosting documentation for the recommended setup, and the checklist in how to secure a new VPS.
Cloud or self-hosted?
The vendor’s cloud removes server work for a subscription. Self-hosting gives control and a flat cost but makes you responsible for uptime. Compare on best VPS hosting.