This repository provides two secure deployment templates for n8n using:
- Caddy β Simple, automatic SSL and reverse proxy setup
- Traefik β Advanced, flexible reverse proxy with automatic SSL
Both setups are designed to:
- β Expose only webhooks to the public internet
- β Keep the n8n UI, login, and workflows private using Tailscale
- β Automatically manage SSL certificates via Let's Encrypt
- β Use Docker Compose for easy deployment
| Feature | Caddy Template | Traefik Template |
|---|---|---|
| Ease of Use | β Very simple | β‘ More flexible |
| Auto SSL | β Built-in | β Built-in |
| Reverse Proxy | β Basic routing | β Advanced routing & middleware |
| Tailscale Support | β Yes | β Yes |
- Use Caddy if you want a quick & simple setup.
- Use Traefik if you need more control over routing and middleware.
git clone https://github.com/telepilotco/n8n-secure-deployment.git
cd n8n-secure-deployment/cd n8n-caddy-tailscale/ # or cd n8n-traefik-tailscale/Edit .env to set up domains, Tailscale settings, and n8n configurations.
sh start.sh- β Secure n8n deployments with either Caddy or Traefik
- β Public webhooks, private admin access via Tailscale
- β Automatic SSL certificates with Let's Encrypt
- β Docker-based setup for easy management
Have improvements or want to report issues? Feel free to open a PR or issue.
π Happy automating with n8n, Caddy, and Traefik! π