Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    n8n Self-Hosting Setup and Security Check (Docker)

    by Saizul Amin

    1

    This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice.

    $8

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    n8n Self-Hosting Setup and Security Check (Docker)

    n8n Self-Hosting Setup and Security Check (Docker)

    Example session with this skill installed

    Run the n8n Self-Hosting Setup and Security Check skill on my project and give me a prioritised list of what to fix, with exact changes.

    • Read your context and instructions
    • Compiled the n8n self-hosting setup

    Here is what the n8n Self-Hosting Setup and Security Check (Docker) skill produced.

    Demo: real, unedited output of the skill's bundled script on the test fixture that ships with its source repo.

    Output

    n8n config check: 3 high, 9 medium, 5 low, 1 info
    HIGH   n8n, worker: n8n services run different image versions
           fix: main, workers and webhook processors must run the same version
    HIGH   n8n, worker: N8N_ENCRYPTION_KEY differs between n8n services: workers cannot decrypt credentials
           fix: use one key for main, workers and webhook processors
    HIGH   postgres: postgres port 5432 published on all interfaces
           fix: remove the ports: entry; n8n reaches it over the compose network
    MEDIUM n8n: image 'n8nio/n8n' is not pinned to a version
           fix: pin e.g. docker.n8n.io/n8nio/n8n:2.x.y and upgrade deliberately
    MEDIUM n8n: no volume for /home/node/.n8n (config, encryption key, binary files are lost on recreate)
           fix: mount a named volume: n8n_data:/home/node/.n8n
    MEDIUM n8n: N8N_BASIC_AUTH_ACTIVE, N8N_BASIC_AUTH_USER: removed in n8n 1.0, does nothing
           fix: remove them; use n8n user management (and SSO/2FA)
    MEDIUM n8n: N8N_DEFAULT_BINARY_DATA_MODE=default was removed in n8n 2.0
           fix: use filesystem (single instance), database or s3
    MEDIUM n8n: NODE_FUNCTION_ALLOW_BUILTIN=* lets every Code node load any module (child_process, fs, ...)
           fix: list only what you need, e.g. NODE_FUNCTION_ALLOW_BUILTIN=crypto
    MEDIUM n8n: WEBHOOK_URL / N8N_WEBHOOK_URL not set: webhook URLs are built from host/port (often http://localhost:5678/)
           fix: set WEBHOOK_URL=https://n8n.example.com/ (N8N_WEBHOOK_URL from 2.30)
    MEDIUM worker: N8N_BASIC_AUTH_ACTIVE, N8N_BASIC_AUTH_USER: removed in n8n 1.0, does nothing
           fix: remove them; use n8n user management (and SSO/2FA)
    MEDIUM worker: N8N_DEFAULT_BINARY_DATA_MODE=default was removed in n8n 2.0
           fix: use filesystem (single instance), database or s3
    MEDIUM worker: NODE_FUNCTION_ALLOW_BUILTIN=* lets every Code node load any module (child_process, fs, ...)
           fix: list only what you need, e.g. NODE_FUNCTION_ALLOW_BUILTIN=crypto
    LOW    n8n: port 5678 published on all interfaces (Docker bypasses UFW)
           fix: bind to localhost behind the reverse proxy: "127.0.0.1:5678:5678"
    LOW    n8n: N8N_BLOCK_ENV_ACCESS_IN_NODE=false: expressions and Code nodes can read every env var (incl. DB password)
           fix: keep the default (true) and use credentials or $vars
    LOW    n8n: N8N_SECURE_COOKIE=false: the session cookie is also sent over plain HTTP
           fix: serve n8n over HTTPS and remove the override
    LOW    n8n: GENERIC_TIMEZONE not set: Schedule Triggers use America/New_York
           fix: set GENERIC_TIMEZONE (and TZ) to your zone, e.g. Asia/Dhaka
    LOW    worker: N8N_BLOCK_ENV_ACCESS_IN_NODE=false: expressions and Code nodes can read every env var (incl. DB password)
           fix: keep the default (true) and use credentials or $vars
    INFO   n8n: manual (editor) executions still run on the main process
           fix: OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS=true keeps heavy test runs off the UI process
    

    What you do next

    1. Fix the highest-severity items first.
    2. Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
    3. Keep the skill installed and re-run it whenever the project changes.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Run self-hosted n8n in production with Docker Compose - PostgreSQL, Redis and queue mode (main + workers, optional webhook processors), reverse proxy and WEBHOOK_URL, encryption key handling, execution pruning, task runners, backups (pg_dump, workflow/credential export, the key) with a restore drill, and safe version upgrades including the n8n 2.0 breaking changes. Ships a ready docker-compose.yml and .env.example, plus a checker for .env / docker compose config output that flags missing or mismatched N8N_ENCRYPTION_KEY, SQLite or removed MySQL, queue mode without Redis or workers, unpinned images, missing data volume, public ports, removed variables and risky Code-node settings without printing any values.

    Who it's for

    Use when installing, moving, scaling, backing up, upgrading or debugging a self-hosted n8n (Docker, VPS, queue mode, workers).

    What's inside

    • Tested, offline Python script(s): n8n_env_check.py (deterministic results, standard library only unless noted)
    • Reference guides: backup-restore.md, queue-mode.md, upgrades.md
    • Step-by-step agent instructions in SKILL.md covering: When to use; When not to use; Workflow

    Why it's worth it

    Generic prompts guess. This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice. See the real demo below.

    Works with every major AI agent

    Built on the open SKILL.md standard: Claude Code, Codex CLI, Cursor, VS Code Copilot, Gemini CLI, Windsurf and 20+ other agents.

    Requirements

    • Python 3.8+ for the bundled scripts
    • No API keys, no account, runs locally

    Open source: saizul/n8n-automation-skills on GitHub (MIT licence, by Saizul Amin).

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently Asked Questions

    Run self-hosted n8n in production with Docker Compose - PostgreSQL, Redis and queue mode (main + workers, optional webhook processors), reverse proxy and WEBHOOK_URL, encryption key handling, execution pruning, task runners, backups (pg_dump, workflow/credential export, the key) with a restore dr...

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use n8n Self-Hosting Setup and Security Check (Docker) on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.