Urgent.News

What's breaking now, across thousands of outlets.

Tech

How to Install n8n on a VPS (Docker + Free HTTPS)

n8n is a workflow automation tool, like Zapier or Make, that you can run on your own server. Self-hosting it means no limit on workflow executions : you pay for the server, not per run, and your API keys and data stay on a machine you control. This guide sets up n8n the clean way: in Docker , behind Caddy , a small web server that gets a free HTTPS certificate automatically and renews it on its…

n8n is a workflow automation tool that you can run on your own server, providing unlimited workflow executions without paying per run and keeping your data secure on a machine you control. This guide explains how to set up n8n on a Linux VPS using Docker and Caddy, a web server that automatically obtains a free HTTPS certificate. The process takes around 15 minutes.

Requirements include a Linux VPS running Ubuntu 24.04 or Debian 12, at least 2 GB of RAM (4 GB or more recommended for business workflows), a subdomain pointing to your server's IP, and a secured server with updated security measures. Replace 'n8n.example.com' in the commands with your own subdomain.

1. Install Docker using the official install script, add it to your user group, and verify the installation with 'docker --version' and 'docker compose version'.

2. Confirm the subdomain points to your server by executing 'dig +short n8n.example.com' and ensuring it prints your server's IP. If not, wait a few minutes for DNS to update.

3. Open ports 80 and 443 using 'sudo ufw allow 80,443/tcp' and check the status with 'sudo ufw status'.

4. Create the 'n8n' folder and 'docker-compose.yml' file, modifying the subdomain and time zone settings as needed. Also, create a 'Caddyfile' with reverse proxy settings.

5. Start the n8n containers with 'docker compose up -d' and verify their status with 'docker compose ps'. n8n will start automatically after a reboot.

6. Create your owner account by visiting 'https://n8n.example.com' and setting a strong password, enabling two-factor authentication.

7. Regularly update n8n by pulling the latest version with 'docker compose pull' and restarting the containers. Your workflows are stored in the 'n8n_data' volume, ensuring no data loss upon updates.

8. For backing up your workflows, create an archive of the 'n8n_data' volume using Docker and save it securely. Note that the encryption key is included in the backup, so store it safely.

Common issues include missing certificates, incorrect webhook URLs, and timezone-related issues. Ensure the subdomain points to the server, fix any typos in 'WEBHOOK_URL', and set the correct timezone settings in 'docker-compose.yml'. If n8n becomes slow or restarts, check your server's memory usage and consider upgrading your VPS plan.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

I Tried Learning in Public for 30 Days — the 3 Things That Actually Worked

A month ago I decided to learn in public. The idea is simple: instead of studying quietly and showing people a finished project at the end, you post what you are learning every day, mistakes included…

  • Strangers corrected the author's mistakes, enhancing learning
  • Daily posting streak maintained consistency, even on tough days
  • Learning journey turned into portfolio aiding job interview

The 7 VS Code Settings I Change on Every New Machine (and Why the Defaults Slow You Down)

I set up a new machine last month and counted how long it took before VS Code felt like mine. Answer: about 15 minutes, most of it spent changing the same seven settings I change every single time.

  • editor.fontLigatures: true Enhances legibility by merging symbols like != into a single character
  • editor.formatOnSave: true Automatically formats code upon saving, preventing formatting disputes
  • editor.tabSize: 2 (with editor.detectIndentation: false) Ensures consistent indentation across files

VITI Field Report Part 2: Converged Security and the BIGF Break-Glass Protocol

A VITI Science Editorial | Why traditional cybersecurity silos fail at Converged Security, and how BIGF bridges the gap between digital breaches and physical destruction.

  • BIGF framework bridges digital and physical security gaps
  • Converged Security locks prevent physical destruction from digital threats
  • Break-Glass Protocol allows manual control during complete digital hijacking

How to make a business app work offline

To make a business app work offline, you store operational records directly on the mobile handset, queue updates locally while technicians work without coverage, and run a safe synchronization…

  • Offline business apps store records directly on mobile devices.
  • Pending changes queued locally sync automatically when connectivity returns.
  • Cross-platform builds chosen based on performance, budget, and timeline.

More from Friday 6 November →