← Back to catalog
n8n

n8n

vlatest

Workflow automation platform for connecting apps and building AI workflows

Install

$curl -fsSL https://virtua.sh/i/n8n | bash
No server?Virtua.Cloud →

What's included

  • n8n workflow automation (latest version via npm)
  • Caddy web server with auto-HTTPS and basic auth
  • SQLite by default, PostgreSQL optional
  • Systemd service with auto-restart

After install

  • Log in with basic auth, then with n8n owner credentials
  • No setup wizard exposed to the internet
  • Custom domain: N8N_HOST=n8n.example.com
  • PostgreSQL: N8N_DB_TYPE=postgres

How the install works

Generated from the install script itself -- these are the exact phases it runs on your server.

  1. 1.Pre-flight checks
  2. 2.Opening firewall
  3. 3.Installing system dependencies
  4. 4.Installing Node.js
  5. 5.Setting up PostgreSQL
  6. 6.Creating n8n user
  7. 7.Installing n8n
  8. 8.Configuring n8n
  9. 9.Creating systemd service
  10. 10.Creating owner account
  11. 11.Installing Caddy
  12. 12.Configuring Caddy

Supported Operating Systems

Ubuntu 24Ubuntu 25Debian 12Debian 13Rocky 9Rocky 10Alma 9Alma 10

Requirements

RAM
1GB minimum
Disk
5GB minimum

Configuration

VariableDefaultDescription
N8N_HOSTserver hostnameDomain name or IP. Domains get auto-HTTPS via Let's Encrypt.
N8N_ADMIN_EMAILadmin@hostnameOwner account email
N8N_ADMIN_PASSrandom 24-charOwner account password
N8N_AUTH_USERadminUsername for Caddy basic auth
N8N_AUTH_PASSrandom 24-charPassword for Caddy basic auth
N8N_DB_TYPEsqliteDatabase backend: sqlite or postgres
N8N_DB_PASSrandom 24-charPostgreSQL password (only used with postgres)
N8N_ENCRYPTION_KEYrandom 24-charEncryption key for credentials stored in n8n

Changelog

v1.0.12026-07-12
  • n8n bound to 127.0.0.1 (basic auth could be bypassed on port 5678)
  • Rocky/Alma: fixed PostgreSQL auth for N8N_DB_TYPE=postgres
  • Reliable Caddy config load (restart instead of enable --now)
v1.0.02026-04-02
  • Initial release with Caddy reverse proxy and auto-HTTPS
  • Caddy basic auth + automated owner setup (no setup wizard exposed)
  • SQLite default, PostgreSQL optional
  • Systemd service with auto-restart
  • Encryption key for credential storage