[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F3MZW7JSR96X2BXAXE23YR":3,"skill-same:01M7F3MZW7JSR96X2BXAXE23YR":99},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M7F3MZW7JSR96X2BXAXE23YR","n8n-self-hosting",null,"Deploy a production self-hosted n8n end-to-end to a fresh Linux VM over SSH, using Docker Compose behind a Caddy reverse proxy with automatic HTTPS. Use whenever the user wants to self-host, install, set up, provision, or deploy n8n on their own server\u002FVPS\u002Fbox (Hetzner, DigitalOcean, AWS EC2, bare metal, etc.) — in either single\u002Fregular mode or queue mode with workers — or to update, back up, restore, or harden such an instance. This is for SELF-HOSTED n8n (Docker), not n8n Cloud and not building workflows. The skill makes the agent ask single-vs-queue first, collect the domain\u002FSSH\u002Ftimezone inputs, generate fresh secrets on the box, and bring the stack up with TLS. Trigger on \"deploy n8n\", \"self-host n8n\", \"install n8n on my server\", \"n8n docker compose\", \"n8n queue mode \u002F workers \u002F scaling\", \"n8n reverse proxy \u002F SSL\", \"back up \u002F update my n8n\", or \"we don't want to give every user the OAuth client secret\" \u002F \"enable the Sign in with Google button\" (credential overwrites).","26BB\u002Fagent-fleet-os","26BB","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F113676969?v=4","01M7F3AVX9MTTAHCYTANRGEE52","Bhushan Vijay Bhosale","01M7F3AVY15DJBX1CE4H25P52T",0,"MIT","https:\u002F\u002Fgithub.com\u002F26BB\u002Fagent-fleet-os\u002Fblob\u002Fmain\u002FN8N agent\u002Fplaybooks\u002Fn8n-self-hosting\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: n8n-self-hosting\ndescription: Deploy a production self-hosted n8n end-to-end to a fresh Linux VM over SSH, using Docker Compose behind a Caddy reverse proxy with automatic HTTPS. Use whenever the user wants to self-host, install, set up, provision, or deploy n8n on their own server\u002FVPS\u002Fbox (Hetzner, DigitalOcean, AWS EC2, bare metal, etc.) — in either single\u002Fregular mode or queue mode with workers — or to update, back up, restore, or harden such an instance. This is for SELF-HOSTED n8n (Docker), not n8n Cloud and not building workflows. The skill makes the agent ask single-vs-queue first, collect the domain\u002FSSH\u002Ftimezone inputs, generate fresh secrets on the box, and bring the stack up with TLS. Trigger on \"deploy n8n\", \"self-host n8n\", \"install n8n on my server\", \"n8n docker compose\", \"n8n queue mode \u002F workers \u002F scaling\", \"n8n reverse proxy \u002F SSL\", \"back up \u002F update my n8n\", or \"we don't want to give every user the OAuth client secret\" \u002F \"enable the Sign in with Google button\" (credential overwrites).\n---\n\n# Deploying self-hosted n8n\n\nThis skill takes a **fresh Linux VM** (Ubuntu\u002FDebian, root or sudo SSH) to a **running,\nHTTPS, production n8n** via Docker Compose behind **Caddy** (automatic Let's Encrypt TLS).\nIt is for **self-hosted n8n on Docker** — not n8n Cloud, and not for building workflows\n(that's the rest of this pack).\n\nTwo deployment modes. The architectures differ, so **pick the mode before doing anything**.\n\nYou drive this end-to-end over SSH: preflight → install Docker → lay down the project →\ngenerate secrets → launch → verify TLS → hand off. The template files live in `assets\u002F`;\nthe per-mode and security depth live in the reference files named below.\n\n## Rule 0 — choose the mode (ask the user)\n\nDo not guess. Ask, then commit to one:\n\n| | **Single \u002F regular** | **Queue** |\n|---|---|---|\n| Processes | one n8n | main + N workers |\n| Extra services | none (SQLite) | Redis (queue) + Postgres (DB) |\n| Executes workflows | in the main process | on workers, in parallel |\n| Good for | 1 user, light\u002Fmoderate load, simplest ops | high volume, heavy\u002Flong executions, horizontal scale |\n| Compose | `assets\u002Fdocker-compose.single.yml` | `assets\u002Fdocker-compose.queue.yml` |\n| Deep dive | **`SINGLE_MODE.md`** | **`QUEUE_MODE.md`** |\n\nIf unsure, start **single** — it's the simplest correct thing and covers most needs. Moving\nto queue later means swapping the compose file and migrating SQLite→Postgres, so if the user\nalready expects real volume, start **queue**.\n\n## Rule 1 — secret hygiene (non-negotiable)\n\nA misstep here leaks client credentials. Be diligent:\n\n1. **Generate every secret fresh, on the target box.** Never copy an encryption key, DB\n   password, or `.env` from another n8n instance into this one. See `SECURITY.md` for the\n   `openssl` commands.\n2. **Secrets live only in `.env`** (mode 600), referenced by the compose as `${VAR}`. Never\n   inline a secret into `docker-compose.yml`, the Caddyfile, or anything you commit.\n3. **The `N8N_ENCRYPTION_KEY` is sacred.** It encrypts every stored credential. If it's lost\n   or changes, all saved credentials become undecryptable. Set it explicitly, and tell the\n   user to back it up **off the box**. Don't echo it into long-lived logs or chat history\n   beyond what's needed to hand it over.\n4. **Never expose internal services.** Only Caddy (80\u002F443) is public. n8n (5678), Postgres\n   (5432), Redis (6379) stay on the private Docker network — the templates already omit their\n   host port mappings. Don't add them.\n5. **`.env` and Caddy's `caddy_data` volume (the issued certs + ACME account key) are not\n   artifacts to share.** If you're working inside a git repo, confirm `.env` is git-ignored\n   before any commit.\n\n## Inputs to collect up front\n\n- **SSH target** — `user@host` and how you authenticate (key path or the user confirms the agent already has access). Root or a sudo user.\n- **Domain** — the full hostname n8n will live at, e.g. `n8n.example.com` (→ `SUBDOMAIN=n8n`, `DOMAIN_NAME=example.com`). The user must control its DNS.\n- **TLS email** — for Let's Encrypt (`SSL_EMAIL`).\n- **Timezone** — IANA name for Schedule\u002FCron nodes (e.g. `Europe\u002FWarsaw`), else `Etc\u002FUTC`.\n- **Mode** — single or queue (Rule 0). Queue → confirm the box has enough RAM (rough floor ~4 GB; each worker wants ~1–2 GB).\n- **Optional modules** — some features (currently **Agents**) are backend modules that stay off\n  unless listed in `N8N_ENABLED_MODULES`. Ask only if the user brings one up; if they do, read\n  the modules section of `QUEUE_MODE.md` before enabling it, because in queue mode it has to\n  reach the workers as well.\n\n## The deploy flow\n\nWork through these in order. `SINGLE_MODE.md` \u002F `QUEUE_MODE.md` give the mode-specific command\ndetail; `SECURITY.md` covers secret generation and hardening; `DAY2.md` covers update\u002Fbackup\u002Frestore.\n\n### 1. Preflight (the cheapest failure is the one you catch here)\n- SSH in; confirm the OS is Debian\u002FUbuntu-like (`. \u002Fetc\u002Fos-release`).\n- **DNS must already point at the box.** Compare the box's public IP (`curl -s ifconfig.me`)\n  with `dig +short \u003Cfqdn>` (run it from the box AND ideally your laptop). If they don't match,\n  **stop** — Caddy's ACME challenge will fail. Have the user create the A record, wait for it\n  to propagate, then continue.\n- Ports **80 and 443** must be reachable from the internet. Check the host firewall AND any\n  cloud security group \u002F network firewall (Hetzner Cloud, AWS SG, etc.) — these are outside\n  the box and a common silent blocker.\n\n### 2. Install Docker (if absent)\n- Check `docker --version` and `docker compose version`. If missing, install Docker Engine +\n  the Compose plugin (Docker's official `get.docker.com` script on Ubuntu\u002FDebian is fine).\n  Re-check `docker compose version` before proceeding.\n\n### 3. Lay down the project\n- Pick `DATA_FOLDER` — an **absolute path**, e.g. `\u002Fopt\u002Fn8n`. The `DATA_FOLDER` value in `.env`\n  **must equal this exact directory** (the compose mounts `${DATA_FOLDER}\u002Fcaddy_config\u002FCaddyfile`,\n  and `init-data.sh` is mounted via a relative `.\u002F` path), so always run `docker compose` from\n  here. Create it, plus `caddy_config\u002F` and `local_files\u002F` inside.\n- **Get the template files onto the box.** They live in this skill's `assets\u002F` on *your* machine,\n  not on the server — transfer each one. Either `scp` them up, or (no local copy needed) write\n  each file's contents over SSH, e.g.\n  `ssh \u003Ctarget> 'cat > \u003CDATA_FOLDER>\u002Fdocker-compose.yml' \u003C assets\u002Fdocker-compose.single.yml`.\n  Land them with these exact names:\n  - the chosen compose → `\u003CDATA_FOLDER>\u002Fdocker-compose.yml` (rename it to exactly this)\n  - `Caddyfile` → `\u003CDATA_FOLDER>\u002Fcaddy_config\u002FCaddyfile`\n  - **queue only:** `init-data.sh` → `\u003CDATA_FOLDER>\u002Finit-data.sh`, then `chmod +x` it\n  - the matching `.env.*.example` → `\u003CDATA_FOLDER>\u002F.env`\n\n### 4. Fill `.env` + generate secrets\n- Set `DATA_FOLDER`, `DOMAIN_NAME`, `SUBDOMAIN`, `SSL_EMAIL`, `GENERIC_TIMEZONE`.\n- Generate each secret **on the box** with `openssl` (`SECURITY.md` has the commands) and **write\n  it into `.env`, replacing the matching `REPLACE_WITH_…` placeholder**: `N8N_ENCRYPTION_KEY`;\n  queue also `POSTGRES_PASSWORD` + `POSTGRES_NON_ROOT_PASSWORD`.\n- **Before launching, confirm none are left unset:** `grep REPLACE_WITH_ .env` must return nothing\n  — a leftover placeholder becomes the literal password and Postgres\u002Fn8n fail to connect.\n- `chmod 600 .env`. Record the encryption key so the user can back it up off-box.\n\n### 5. Firewall\n- `ufw`: allow OpenSSH + 80 + 443, then enable. Do **not** open 5678\u002F5432\u002F6379.\n\n### 6. Launch\n- `cd \u003CDATA_FOLDER> && docker compose up -d`.\n- Queue mode brings up Redis + Postgres + main + workers (workers via `replicas`). To add\n  capacity: `docker compose up -d --scale n8n-worker=N`.\n\n### 7. Verify (don't declare success without this)\n- `docker compose ps` — every service `Up`\u002Fhealthy (queue: postgres & redis `healthy` first).\n- **n8n itself up (internal):** `docker compose exec n8n wget -qO- http:\u002F\u002Flocalhost:5678\u002Fhealthz`\n  → `{\"status\":\"ok\"}`. This separates \"n8n is running\" from \"TLS isn't ready yet.\"\n- **Cert issued:** `docker compose logs caddy | grep -i 'certificate obtained'`. First-boot ACME\n  can take a minute or two; until it finishes, a public `https:\u002F\u002F` request fails TLS — that means\n  the cert is still pending, **not** that n8n is down.\n- **Public reachability (with retry):** `curl -fsS --retry 5 --retry-delay 10 https:\u002F\u002F\u003Cfqdn>\u002Fhealthz`\n  → `{\"status\":\"ok\"}`. (`\u002Fhealthz` only proves the process is reachable; `\u002Fhealthz\u002Freadiness`\n  additionally confirms the DB is connected and migrated — use it when debugging a boot loop.)\n- **Queue mode — main and workers must agree.** Diff their environments:\n  `diff \u003C(docker compose exec -T n8n env | sort) \u003C(docker compose exec -T --index 1 n8n-worker env | sort)`.\n  Only the public-URL\u002Fproxy vars should differ. Anything else means a behavioural setting reached\n  the main but not the workers — and workers are what execute workflows, so it fails at runtime\n  in one node rather than at boot. `QUEUE_MODE.md` explains the rule.\n- Open `https:\u002F\u002F\u003Cfqdn>` → the **owner setup** screen. **Whoever completes that signup form first\n  claims the instance** — an exposed un-owned instance is a race, so create the owner account\n  immediately, before sharing the URL. Enable 2FA. (Automated deploys can pre-provision the\n  owner via env vars instead — see the owner row in `SECURITY.md`.)\n\n### 8. Hand off\n- Give the user: the URL, where the project lives, the encryption key to store safely, and the\n  Day-2 basics (update \u002F backup \u002F restore) from **`DAY2.md`**.\n\n## What NOT to do\n\n- **Don't skip the DNS\u002Fports preflight.** A wrong A record or a closed cloud firewall is the\n  #1 reason Caddy can't get a cert and n8n looks \"broken.\"\n- **Don't publish 5678\u002F5432\u002F6379** to the host. Caddy reaches n8n over the private network.\n- **Don't reuse another instance's encryption key or `.env`.** Fresh secrets per box.\n- **Don't run queue mode on SQLite.** Queue requires Postgres (the template already wires it).\n- **Don't put secrets in `docker-compose.yml` or the Caddyfile.** `.env` only.\n- **Don't add a behavioural env var to the main only (queue mode).** Modules, DB, queue,\n  binary-data and encryption settings belong in the shared `x-n8n-env` anchor so workers get\n  them too; only the public-URL\u002Fproxy vars are main-only. See `QUEUE_MODE.md`.\n- **Don't use `:latest` blindly.** Pin `N8N_IMAGE_TAG`; update deliberately (`DAY2.md`).\n\n## Reference files\n\n- **`SINGLE_MODE.md`** — single-instance specifics, SQLite vs Postgres, when to graduate to queue.\n- **`QUEUE_MODE.md`** — queue architecture, workers\u002Fconcurrency\u002Fscaling, shared encryption key, the main-vs-worker **env-parity rule**, optional backend modules (`N8N_ENABLED_MODULES`, e.g. Agents), binary data (`database` mode — filesystem is unsupported in queue mode; S3\u002FAzure = Enterprise), webhook processors, multi-main licensing.\n- **`SECURITY.md`** — generating secrets, the encryption-key rules, the full hardening checklist (telemetry off, env-access block, public API, firewall, secure cookies).\n- **`CREDENTIAL_OVERWRITES.md`** — managed OAuth: register one OAuth app instance-wide so users\n  never see a client ID\u002Fsecret (\"Sign in with Google\" on self-hosted). The endpoint-vs-env choice,\n  the **mandatory** endpoint auth token, parent-type inheritance, persistence and worker reload.\n- **`DAY2.md`** — changing a setting (env var) safely, updating the image, backing up (encryption key + volume + Postgres), and restoring.\n- **`assets\u002F`** — the templates: `docker-compose.single.yml`, `docker-compose.queue.yml`, `Caddyfile`, `.env.single.example`, `.env.queue.example`, `init-data.sh`.\n\nAuthoritative upstream reference: the official hosting docs live at\n\u003Chttps:\u002F\u002Fdocs.n8n.io\u002Fdeploy\u002Fhost-n8n> (restructured mid-2026 from the old `\u002Fhosting\u002F` paths —\nprefer these URLs). The env-var reference index is at\n\u003Chttps:\u002F\u002Fdocs.n8n.io\u002Fdeploy\u002Fhost-n8n\u002Fconfigure-n8n\u002Fbasic-configuration\u002Fuse-environment-variables>.\nWhen this skill and the live docs disagree, trust the docs and tell the user.\n","# Deploying self-hosted n8n\n\nThis skill takes a **fresh Linux VM** (Ubuntu\u002FDebian, root or sudo SSH) to a **running,\nHTTPS, production n8n** via Docker Compose behind **Caddy** (automatic Let's Encrypt TLS).\nIt is for **self-hosted n8n on Docker** — not n8n Cloud, and not for building workflows\n(that's the rest of this pack).\n\nTwo deployment modes. The architectures differ, so **pick the mode before doing anything**.\n\nYou drive this end-to-end over SSH: preflight → install Docker → lay down the project →\ngenerate secrets → launch → verify TLS → hand off. The template files live in `assets\u002F`;\nthe per-mode and security depth live in the reference files named below.\n\n## Rule 0 — choose the mode (ask the user)\n\nDo not guess. Ask, then commit to one:\n\n| | **Single \u002F regular** | **Queue** |\n|---|---|---|\n| Processes | one n8n | main + N workers |\n| Extra services | none (SQLite) | Redis (queue) + Postgres (DB) |\n| Executes workflows | in the main process | on workers, in parallel |\n| Good for | 1 user, light\u002Fmoderate load, simplest ops | high volume, heavy\u002Flong executions, horizontal scale |\n| Compose | `assets\u002Fdocker-compose.single.yml` | `assets\u002Fdocker-compose.queue.yml` |\n| Deep dive | **`SINGLE_MODE.md`** | **`QUEUE_MODE.md`** |\n\nIf unsure, start **single** — it's the simplest correct thing and covers most needs. Moving\nto queue later means swapping the compose file and migrating SQLite→Postgres, so if the user\nalready expects real volume, start **queue**.\n\n## Rule 1 — secret hygiene (non-negotiable)\n\nA misstep here leaks client credentials. Be diligent:\n\n1. **Generate every secret fresh, on the target box.** Never copy an encryption key, DB\n   password, or `.env` from another n8n instance into this one. See `SECURITY.md` for the\n   `openssl` commands.\n2. **Secrets live only in `.env`** (mode 600), referenced by the compose as `${VAR}`. Never\n   inline a secret into `docker-compose.yml`, the Caddyfile, or anything you commit.\n3. **The `N8N_ENCRYPTION_KEY` is sacred.** It encrypts every stored credential. If it's lost\n   or changes, all saved credentials become undecryptable. Set it explicitly, and tell the\n   user to back it up **off the box**. Don't echo it into long-lived logs or chat history\n   beyond what's needed to hand it over.\n4. **Never expose internal services.** Only Caddy (80\u002F443) is public. n8n (5678), Postgres\n   (5432), Redis (6379) stay on the private Docker network — the templates already omit their\n   host port mappings. Don't add them.\n5. **`.env` and Caddy's `caddy_data` volume (the issued certs + ACME account key) are not\n   artifacts to share.** If you're working inside a git repo, confirm `.env` is git-ignored\n   before any commit.\n\n## Inputs to collect up front\n\n- **SSH target** — `user@host` and how you authenticate (key path or the user confirms the agent already has access). Root or a sudo user.\n- **Domain** — the full hostname n8n will live at, e.g. `n8n.example.com` (→ `SUBDOMAIN=n8n`, `DOMAIN_NAME=example.com`). The user must control its DNS.\n- **TLS email** — for Let's Encrypt (`SSL_EMAIL`).\n- **Timezone** — IANA name for Schedule\u002FCron nodes (e.g. `Europe\u002FWarsaw`), else `Etc\u002FUTC`.\n- **Mode** — single or queue (Rule 0). Queue → confirm the box has enough RAM (rough floor ~4 GB; each worker wants ~1–2 GB).\n- **Optional modules** — some features (currently **Agents**) are backend modules that stay off\n  unless listed in `N8N_ENABLED_MODULES`. Ask only if the user brings one up; if they do, read\n  the modules section of `QUEUE_MODE.md` before enabling it, because in queue mode it has to\n  reach the workers as well.\n\n## The deploy flow\n\nWork through these in order. `SINGLE_MODE.md` \u002F `QUEUE_MODE.md` give the mode-specific command\ndetail; `SECURITY.md` covers secret generation and hardening; `DAY2.md` covers update\u002Fbackup\u002Frestore.\n\n### 1. Preflight (the cheapest failure is the one you catch here)\n- SSH in; confirm the OS is Debian\u002FUbuntu-like (`. \u002Fetc\u002Fos-release`).\n- **DNS must already point at the box.** Compare the box's public IP (`curl -s ifconfig.me`)\n  with `dig +short \u003Cfqdn>` (run it from the box AND ideally your laptop). If they don't match,\n  **stop** — Caddy's ACME challenge will fail. Have the user create the A record, wait for it\n  to propagate, then continue.\n- Ports **80 and 443** must be reachable from the internet. Check the host firewall AND any\n  cloud security group \u002F network firewall (Hetzner Cloud, AWS SG, etc.) — these are outside\n  the box and a common silent blocker.\n\n### 2. Install Docker (if absent)\n- Check `docker --version` and `docker compose version`. If missing, install Docker Engine +\n  the Compose plugin (Docker's official `get.docker.com` script on Ubuntu\u002FDebian is fine).\n  Re-check `docker compose version` before proceeding.\n\n### 3. Lay down the project\n- Pick `DATA_FOLDER` — an **absolute path**, e.g. `\u002Fopt\u002Fn8n`. The `DATA_FOLDER` value in `.env`\n  **must equal this exact directory** (the compose mounts `${DATA_FOLDER}\u002Fcaddy_config\u002FCaddyfile`,\n  and `init-data.sh` is mounted via a relative `.\u002F` path), so always run `docker compose` from\n  here. Create it, plus `caddy_config\u002F` and `local_files\u002F` inside.\n- **Get the template files onto the box.** They live in this skill's `assets\u002F` on *your* machine,\n  not on the server — transfer each one. Either `scp` them up, or (no local copy needed) write\n  each file's contents over SSH, e.g.\n  `ssh \u003Ctarget> 'cat > \u003CDATA_FOLDER>\u002Fdocker-compose.yml' \u003C assets\u002Fdocker-compose.single.yml`.\n  Land them with these exact names:\n  - the chosen compose → `\u003CDATA_FOLDER>\u002Fdocker-compose.yml` (rename it to exactly this)\n  - `Caddyfile` → `\u003CDATA_FOLDER>\u002Fcaddy_config\u002FCaddyfile`\n  - **queue only:** `init-data.sh` → `\u003CDATA_FOLDER>\u002Finit-data.sh`, then `chmod +x` it\n  - the matching `.env.*.example` → `\u003CDATA_FOLDER>\u002F.env`\n\n### 4. Fill `.env` + generate secrets\n- Set `DATA_FOLDER`, `DOMAIN_NAME`, `SUBDOMAIN`, `SSL_EMAIL`, `GENERIC_TIMEZONE`.\n- Generate each secret **on the box** with `openssl` (`SECURITY.md` has the commands) and **write\n  it into `.env`, replacing the matching `REPLACE_WITH_…` placeholder**: `N8N_ENCRYPTION_KEY`;\n  queue also `POSTGRES_PASSWORD` + `POSTGRES_NON_ROOT_PASSWORD`.\n- **Before launching, confirm none are left unset:** `grep REPLACE_WITH_ .env` must return nothing\n  — a leftover placeholder becomes the literal password and Postgres\u002Fn8n fail to connect.\n- `chmod 600 .env`. Record the encryption key so the user can back it up off-box.\n\n### 5. Firewall\n- `ufw`: allow OpenSSH + 80 + 443, then enable. Do **not** open 5678\u002F5432\u002F6379.\n\n### 6. Launch\n- `cd \u003CDATA_FOLDER> && docker compose up -d`.\n- Queue mode brings up Redis + Postgres + main + workers (workers via `replicas`). To add\n  capacity: `docker compose up -d --scale n8n-worker=N`.\n\n### 7. Verify (don't declare success without this)\n- `docker compose ps` — every service `Up`\u002Fhealthy (queue: postgres & redis `healthy` first).\n- **n8n itself up (internal):** `docker compose exec n8n wget -qO- http:\u002F\u002Flocalhost:5678\u002Fhealthz`\n  → `{\"status\":\"ok\"}`. This separates \"n8n is running\" from \"TLS isn't ready yet.\"\n- **Cert issued:** `docker compose logs caddy | grep -i 'certificate obtained'`. First-boot ACME\n  can take a minute or two; until it finishes, a public `https:\u002F\u002F` request fails TLS — that means\n  the cert is still pending, **not** that n8n is down.\n- **Public reachability (with retry):** `curl -fsS --retry 5 --retry-delay 10 https:\u002F\u002F\u003Cfqdn>\u002Fhealthz`\n  → `{\"status\":\"ok\"}`. (`\u002Fhealthz` only proves the process is reachable; `\u002Fhealthz\u002Freadiness`\n  additionally confirms the DB is connected and migrated — use it when debugging a boot loop.)\n- **Queue mode — main and workers must agree.** Diff their environments:\n  `diff \u003C(docker compose exec -T n8n env | sort) \u003C(docker compose exec -T --index 1 n8n-worker env | sort)`.\n  Only the public-URL\u002Fproxy vars should differ. Anything else means a behavioural setting reached\n  the main but not the workers — and workers are what execute workflows, so it fails at runtime\n  in one node rather than at boot. `QUEUE_MODE.md` explains the rule.\n- Open `https:\u002F\u002F\u003Cfqdn>` → the **owner setup** screen. **Whoever completes that signup form first\n  claims the instance** — an exposed un-owned instance is a race, so create the owner account\n  immediately, before sharing the URL. Enable 2FA. (Automated deploys can pre-provision the\n  owner via env vars instead — see the owner row in `SECURITY.md`.)\n\n### 8. Hand off\n- Give the user: the URL, where the project lives, the encryption key to store safely, and the\n  Day-2 basics (update \u002F backup \u002F restore) from **`DAY2.md`**.\n\n## What NOT to do\n\n- **Don't skip the DNS\u002Fports preflight.** A wrong A record or a closed cloud firewall is the\n  #1 reason Caddy can't get a cert and n8n looks \"broken.\"\n- **Don't publish 5678\u002F5432\u002F6379** to the host. Caddy reaches n8n over the private network.\n- **Don't reuse another instance's encryption key or `.env`.** Fresh secrets per box.\n- **Don't run queue mode on SQLite.** Queue requires Postgres (the template already wires it).\n- **Don't put secrets in `docker-compose.yml` or the Caddyfile.** `.env` only.\n- **Don't add a behavioural env var to the main only (queue mode).** Modules, DB, queue,\n  binary-data and encryption settings belong in the shared `x-n8n-env` anchor so workers get\n  them too; only the public-URL\u002Fproxy vars are main-only. See `QUEUE_MODE.md`.\n- **Don't use `:latest` blindly.** Pin `N8N_IMAGE_TAG`; update deliberately (`DAY2.md`).\n\n## Reference files\n\n- **`SINGLE_MODE.md`** — single-instance specifics, SQLite vs Postgres, when to graduate to queue.\n- **`QUEUE_MODE.md`** — queue architecture, workers\u002Fconcurrency\u002Fscaling, shared encryption key, the main-vs-worker **env-parity rule**, optional backend modules (`N8N_ENABLED_MODULES`, e.g. Agents), binary data (`database` mode — filesystem is unsupported in queue mode; S3\u002FAzure = Enterprise), webhook processors, multi-main licensing.\n- **`SECURITY.md`** — generating secrets, the encryption-key rules, the full hardening checklist (telemetry off, env-access block, public API, firewall, secure cookies).\n- **`CREDENTIAL_OVERWRITES.md`** — managed OAuth: register one OAuth app instance-wide so users\n  never see a client ID\u002Fsecret (\"Sign in with Google\" on self-hosted). The endpoint-vs-env choice,\n  the **mandatory** endpoint auth token, parent-type inheritance, persistence and worker reload.\n- **`DAY2.md`** — changing a setting (env var) safely, updating the image, backing up (encryption key + volume + Postgres), and restoring.\n- **`assets\u002F`** — the templates: `docker-compose.single.yml`, `docker-compose.queue.yml`, `Caddyfile`, `.env.single.example`, `.env.queue.example`, `init-data.sh`.\n\nAuthoritative upstream reference: the official hosting docs live at\n\u003Chttps:\u002F\u002Fdocs.n8n.io\u002Fdeploy\u002Fhost-n8n> (restructured mid-2026 from the old `\u002Fhosting\u002F` paths —\nprefer these URLs). The env-var reference index is at\n\u003Chttps:\u002F\u002Fdocs.n8n.io\u002Fdeploy\u002Fhost-n8n\u002Fconfigure-n8n\u002Fbasic-configuration\u002Fuse-environment-variables>.\nWhen this skill and the live docs disagree, trust the docs and tell the user.\n",{"name":5,"description":7},"main","98985c16dc8df1bbd7dcd1bc698cd997a093e751","N8N agent\u002Fplaybooks\u002Fn8n-self-hosting","https:\u002F\u002Fgithub.com\u002F26BB\u002Fagent-fleet-os","https:\u002F\u002Fgithub.com\u002F26BB","🚀 Aspiring Product Manager | CS @ GS Moze\r\n\r\n🛠️ Building 0→1 products across SaaS & clean-tech\r\n\r\n📊 Turning user feedback & data into shipped features","2026-11-05 13:34:38",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add 26BB\u002Fagent-fleet-os --skill n8n-self-hosting",{"tool":37,"command":38},"bunx","bunx skills add 26BB\u002Fagent-fleet-os --skill n8n-self-hosting",{"tool":40,"command":41},"pnpm","pnpm dlx skills add 26BB\u002Fagent-fleet-os --skill n8n-self-hosting","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F26BB\u002Fagent-fleet-os\u002Fblob\u002Fmain\u002FN8N agent\u002Fplaybooks\u002Fn8n-self-hosting\u002FSKILL.md",true,[45,51,55,59,63,67,73,79,83,87,91,95],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"assets\u002F.env.queue.example","ASSET","资产文件",1854,"https:\u002F\u002Fgithub.com\u002F26BB\u002Fagent-fleet-os\u002Fblob\u002Fmain\u002FN8N agent\u002Fplaybooks\u002Fn8n-self-hosting\u002Fassets\u002F.env.queue.example",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"assets\u002F.env.single.example",1430,"https:\u002F\u002Fgithub.com\u002F26BB\u002Fagent-fleet-os\u002Fblob\u002Fmain\u002FN8N agent\u002Fplaybooks\u002Fn8n-self-hosting\u002Fassets\u002F.env.single.example",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"assets\u002FCaddyfile",1136,"https:\u002F\u002Fgithub.com\u002F26BB\u002Fagent-fleet-os\u002Fblob\u002Fmain\u002FN8N agent\u002Fplaybooks\u002Fn8n-self-hosting\u002Fassets\u002FCaddyfile",{"path":60,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":61,"sourceHtmlUrl":62},"assets\u002Fdocker-compose.queue.yml",6721,"https:\u002F\u002Fgithub.com\u002F26BB\u002Fagent-fleet-os\u002Fblob\u002Fmain\u002FN8N agent\u002Fplaybooks\u002Fn8n-self-hosting\u002Fassets\u002Fdocker-compose.queue.yml",{"path":64,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":66},"assets\u002Fdocker-compose.single.yml",2871,"https:\u002F\u002Fgithub.com\u002F26BB\u002Fagent-fleet-os\u002Fblob\u002Fmain\u002FN8N agent\u002Fplaybooks\u002Fn8n-self-hosting\u002Fassets\u002Fdocker-compose.single.yml",{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"assets\u002Finit-data.sh","SCRIPT","脚本",924,"https:\u002F\u002Fgithub.com\u002F26BB\u002Fagent-fleet-os\u002Fblob\u002Fmain\u002FN8N agent\u002Fplaybooks\u002Fn8n-self-hosting\u002Fassets\u002Finit-data.sh",{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"CREDENTIAL_OVERWRITES.md","REFERENCE","参考文档",8041,"https:\u002F\u002Fgithub.com\u002F26BB\u002Fagent-fleet-os\u002Fblob\u002Fmain\u002FN8N agent\u002Fplaybooks\u002Fn8n-self-hosting\u002FCREDENTIAL_OVERWRITES.md",{"path":80,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":81,"sourceHtmlUrl":82},"DAY2.md",8356,"https:\u002F\u002Fgithub.com\u002F26BB\u002Fagent-fleet-os\u002Fblob\u002Fmain\u002FN8N agent\u002Fplaybooks\u002Fn8n-self-hosting\u002FDAY2.md",{"path":84,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":85,"sourceHtmlUrl":86},"QUEUE_MODE.md",10118,"https:\u002F\u002Fgithub.com\u002F26BB\u002Fagent-fleet-os\u002Fblob\u002Fmain\u002FN8N agent\u002Fplaybooks\u002Fn8n-self-hosting\u002FQUEUE_MODE.md",{"path":88,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":89,"sourceHtmlUrl":90},"README.md",4629,"https:\u002F\u002Fgithub.com\u002F26BB\u002Fagent-fleet-os\u002Fblob\u002Fmain\u002FN8N agent\u002Fplaybooks\u002Fn8n-self-hosting\u002FREADME.md",{"path":92,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":93,"sourceHtmlUrl":94},"SECURITY.md",8198,"https:\u002F\u002Fgithub.com\u002F26BB\u002Fagent-fleet-os\u002Fblob\u002Fmain\u002FN8N agent\u002Fplaybooks\u002Fn8n-self-hosting\u002FSECURITY.md",{"path":96,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":97,"sourceHtmlUrl":98},"SINGLE_MODE.md",3697,"https:\u002F\u002Fgithub.com\u002F26BB\u002Fagent-fleet-os\u002Fblob\u002Fmain\u002FN8N agent\u002Fplaybooks\u002Fn8n-self-hosting\u002FSINGLE_MODE.md",[100,107,114,121,128,135],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M7F51NQSCRM2PWFMATCV9MEG","taste-design","Semantic Design System Skill for Google Stitch. Generates agent-friendly DESIGN.md files that enforce premium, anti-generic UI standards — strict typography, calibrated color, asymmetric layouts, perpetual micro-motion, and hardware-accelerated performance.","https:\u002F\u002Fgithub.com\u002F26BB\u002Fagent-fleet-os\u002Fblob\u002Fmain\u002Fstitch agent\u002Fplugins\u002Fstitch-utilities\u002Fplaybooks\u002Ftaste-design\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":19},"01M7F51JGTS9VJ3S9T6VMQWZ08","stitch-loop","Teaches agents to iteratively build websites using Stitch with an autonomous baton-passing loop pattern","https:\u002F\u002Fgithub.com\u002F26BB\u002Fagent-fleet-os\u002Fblob\u002Fmain\u002Fstitch agent\u002Fplugins\u002Fstitch-utilities\u002Fplaybooks\u002Fstitch-loop\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":19},"01M7F51EZR2XYDWMA3XKWH1HX2","site-md","Analyze a project description or site requirements and synthesize a project constitution into SITE.md for the Stitch Build Loop","https:\u002F\u002Fgithub.com\u002F26BB\u002Fagent-fleet-os\u002Fblob\u002Fmain\u002Fstitch agent\u002Fplugins\u002Fstitch-utilities\u002Fplaybooks\u002Fsite-md\u002FSKILL.md",[],[],{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":19},"01M7F51BNCMP0GQ7SGP39SZYDP","enhance-prompt","Transforms vague UI ideas into polished, Stitch-optimized prompts. Enhances specificity, adds UI\u002FUX keywords, injects design system context, and structures output for better generation results.","https:\u002F\u002Fgithub.com\u002F26BB\u002Fagent-fleet-os\u002Fblob\u002Fmain\u002Fstitch agent\u002Fplugins\u002Fstitch-utilities\u002Fplaybooks\u002Fenhance-prompt\u002FSKILL.md",[],[],{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":19},"01M7F518SX707EB3X42B2V7HRA","design-md","Analyze Stitch projects and synthesize a semantic design system into DESIGN.md files","https:\u002F\u002Fgithub.com\u002F26BB\u002Fagent-fleet-os\u002Fblob\u002Fmain\u002Fstitch agent\u002Fplugins\u002Fstitch-utilities\u002Fplaybooks\u002Fdesign-md\u002FSKILL.md",[],[],{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":19},"01M7F5148PVYTA76NR3X0YK8SK","stitch::upload-to-stitch","Upload local assets (images, mockups, extracted HTML, design markdown) to a Stitch project. ALWAYS use this skill when you need to upload visual assets, HTML pages, or design docs to Stitch, particularly when direct MCP tool calls fail or truncate due to base64 token limits.","https:\u002F\u002Fgithub.com\u002F26BB\u002Fagent-fleet-os\u002Fblob\u002Fmain\u002Fstitch agent\u002Fplugins\u002Fstitch-design\u002Fplaybooks\u002Fupload-to-stitch\u002FSKILL.md",[],[]]