n8n Workflow Automation Platform¶
n8n is our self-hosted workflow automation platform that connects various services and APIs.
Quick Links¶
- Access URL: https://n8n.rbnk.uk
- Documentation: n8n Docs
- Troubleshooting: troubleshooting.md
- Learnings: N8N_LEARNINGS.md
Architecture¶
n8n runs as a Docker container behind Traefik reverse proxy with:
- Internal port: 5678
- External access: HTTPS on port 443 via Traefik
- Database: SQLite (default) with option for PostgreSQL
- Networks: traefik_proxy (external), supabase_internal (database)
Configuration¶
Critical Environment Variables¶
N8N_WEBHOOK_BASE_URL=https://n8n.rbnk.uk:443 # MUST include :443 for Telegram
N8N_WEBHOOK_URL=https://n8n.rbnk.uk:443 # Explicit webhook URL
WEBHOOK_URL=https://n8n.rbnk.uk:443 # Legacy support
See docker-compose.yml for full configuration.
Common Operations¶
Service Management¶
# Start/Stop
docker compose up -d
docker compose down
# View logs
docker compose logs -f n8n
# Restart
docker compose restart n8n
Workflow Management¶
# Export all workflows
docker compose exec n8n n8n export:workflow --all --output=/files/workflows.json
# Import workflows
docker compose exec n8n n8n import:workflow --input=/files/workflows.json
Troubleshooting¶
Before debugging, always check: 1. troubleshooting.md - Quick troubleshooting guide 2. N8N_LEARNINGS.md - Detailed solutions
Most Common Issues¶
- Telegram webhook port error: Set webhook URLs with explicit
:443 - 502 Bad Gateway: Wait 30 seconds after restart
- Workflow stops after webhook: Check credential IDs and responseMode
- Credential errors: Use ID from URL, not credential name
Integrations¶
Currently Active¶
- Telegram Bot: AI assistant and task automation
- Supabase: Database for task tracking
- Slack: Notification system (being migrated to ntfy)
- Cloudflare: DNS and security management
- Prometheus: Metrics collection
- Rclone: Backup automation
Available Nodes¶
- 500+ built-in nodes
- Custom code execution (JavaScript/Python)
- Webhook triggers and HTTP requests
- Database operations (PostgreSQL, MySQL, MongoDB)
- File operations and data transformation
Workflows¶
Production Workflows¶
- Error Notification - Centralized error handling
- Task Status Checker - Query task status
- Task Completion Handler - Process completed tasks
- Infrastructure Monitor - System health checks
- Backup Automation - Scheduled backup operations
- Security Auditor - Regular security scans
Development Guidelines¶
- Always set
responseMode: lastNodefor webhooks - Use exact credential IDs from UI
- Test with cURL before production
- Export workflows before major changes
- Use meaningful webhook paths
Security¶
- All webhooks require HTTPS
- Credentials encrypted at rest
- Basic auth available for editor access
- Network isolation via Docker networks
- Regular security updates
Monitoring¶
- Health endpoint:
https://n8n.rbnk.uk/healthz - Prometheus metrics available
- Execution history in UI
- Error workflows for automated alerts