Skip to Content

n8n Setup & Hosting

Your own n8n automation server with HTTPS, encrypted credentials, backups and error alerts: no per-run fees, your data stays with you.

WHAT IS INSTALLED

Your own n8n, ready for real work

n8n is a visual automation tool: you connect apps with boxes and arrows instead of code. Self-hosted, it runs next to your Odoo with no limit on runs.

  • Your address such as automation.yourcompany.com, with HTTPS
  • Docker setup that restarts by itself after a reboot
  • Encrypted credentials with the key stored safely and backed up
  • Nightly backups of workflows and credentials
  • Error alerts on Telegram when any workflow fails
  • History cleanup so old runs do not fill the disk
Internet Β· HTTPS
YOUR SERVER
nginx
n8n
Odoo
Code runner
Backups
Error alerts
HOSTED OR YOUR OWN

Why host it yourself

Hosted plansSelf-hosted
Number of workflow runsLimited by planLimited only by your server
Where your data isProvider's serversYour own server
Access to Odoo on a private networkNot possibleYes
Monthly costGrows with usageYour server only

n8n can run on the same server as Odoo when there is spare memory (about 1 GB), or on a small separate server.

HOW IT IS IMPLEMENTED

Installation, step by step

Excerpts from an n8n installation running in production next to Odoo.

  1. Add a subdomain

    One DNS record, for example automation.yourcompany.com, pointing to your server.

  2. Run n8n in Docker

    n8n listens only on the server itself and joins Odoo's private network, so workflows reach Odoo directly without going over the internet. Code steps run in a separate, limited container.

    /odoo/n8n/docker-compose.yml (excerpt)
    services:
      n8n:
        image: n8nio/n8n:2.48.7
        restart: unless-stopped
        environment:
          N8N_HOST: automation.yourcompany.com
          N8N_PROTOCOL: https
          N8N_WEBHOOK_URL: https://automation.yourcompany.com/
          N8N_PROXY_HOPS: "1"
          N8N_ENCRYPTION_KEY: ${N8N_ENCRYPTION_KEY}   # encrypts stored credentials
          GENERIC_TIMEZONE: Asia/Dhaka
          EXECUTIONS_DATA_PRUNE: "true"
          EXECUTIONS_DATA_MAX_AGE: "168"              # keep 7 days of run history
          N8N_RUNNERS_MODE: external                  # code runs in the runners container
          N8N_RUNNERS_AUTH_TOKEN: ${N8N_RUNNERS_AUTH_TOKEN}
        volumes:
          - /odoo/n8n/data:/home/node/.n8n
        ports:
          - "127.0.0.1:5678:5678"
        mem_limit: 1g
        networks: [default, odoo-internal]            # reaches Odoo as http://odoo:8069
    
      runners:
        image: n8nio/runners:2.48.7
        restart: unless-stopped
        environment:
          N8N_RUNNERS_TASK_BROKER_URI: http://n8n:5679
          N8N_RUNNERS_AUTH_TOKEN: ${N8N_RUNNERS_AUTH_TOKEN}
        mem_limit: 512m
    
    networks:
      odoo-internal: { external: true, name: odoo_odoo-internal }
  3. Publish it with nginx and HTTPS

    /etc/nginx/sites-enabled/n8n.conf (excerpt)
    upstream n8n { server 127.0.0.1:5678; }
    server {
      server_name automation.yourcompany.com;
      client_max_body_size 32m;
      proxy_read_timeout 300s;
      proxy_set_header Host              $host;
      proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
      proxy_set_header X-Forwarded-Proto $scheme;
      location / {
        proxy_pass http://n8n;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;       # live editor updates
        proxy_set_header Connection $connection_upgrade;
        proxy_buffering off;
      }
    }
    Certificate
    certbot --nginx -d automation.yourcompany.com
  4. Create the owner account and connect apps

    You get the owner login. Odoo is connected with its own API key, Telegram with a bot token; both are stored encrypted inside n8n.

  5. Back up workflows and credentials

    Every night the workflows and the (still encrypted) credentials are exported, together with the encryption key needed to read them.

    /odoo/scripts/n8n-backup.sh (excerpt)
    umask 077
    docker exec -u node n8n-n8n-1 n8n export:workflow --all --backup --output=/home/node/.n8n/backup-work/workflows/
    docker exec -u node n8n-n8n-1 n8n export:credentials --all --backup --output=/home/node/.n8n/backup-work/credentials/
    tar -C "$WORK" -czf "$DEST/n8n-export.tar.gz" .
    install -m 600 /odoo/n8n/.env "$DEST/env.backup"   # holds the encryption key
  6. Get told when a workflow fails

    One error workflow is linked to all others. Any failure sends the workflow name, the failing step and a link to the run.

    n8n Β· Workflow errors β†’ Telegram
    n8n error workflow: error trigger, format message, Telegram
    The error workflow: three steps that report any failed workflow to Telegram.
WHAT YOU WILL SEE

Your workflows in one place

automation.yourcompany.com
n8n workflow overview with several active workflows
The n8n overview: each automation is a workflow you can open, change, switch off or run again.
HOW YOU BENEFIT

Automation you own

♾️No run limits

Run workflows every minute if needed, at no extra cost.

πŸ”Data stays home

Customer and order data never passes through a third-party automation service.

⚑Direct to Odoo

Workflows talk to Odoo on the private network: fast and never exposed.

πŸ‘€Visible logic

Every automation is a diagram anyone on your team can follow.

πŸ’ΎBacked up

Workflows and credentials restored in minutes after any problem.

πŸ§‘β€πŸ«Handover call

A walkthrough so you can build simple workflows yourself.

QUESTIONS

Common questions

Is self-hosted n8n free?

The community edition is free to self-host for your own business use under n8n's license. You pay only for the server.

Can it run without Odoo?

Yes. n8n connects hundreds of apps; Odoo is one of them.

Who updates n8n?

Updates are a version change in one file and a restart, after a backup. It can be part of a monthly care plan.