This guide helps you set up n8n using a Cloudflare Tunnel for secure remote access.
- Run setup directly via curl:
# Run full setup including glue code
curl -fsSL https://raw.githubusercontent.com/vinitngr/n8n-tunnel/refs/heads/main/scripts/setup.sh | bash -s -- n8n <Domain(example.com)> 5678
# OR run setup without glue runN8N generation
curl -fsSL https://raw.githubusercontent.com/vinitngr/n8n-tunnel/refs/heads/main/scripts/setup.sh | bash -s -- n8n <Domain> 5678 --noglue
or
curl -fsSL -o setup.sh https://raw.githubusercontent.com/vinitngr/n8n-tunnel/refs/heads/main/scripts/setup.sh
chmod +x setup.sh
./setup.sh # or
./setup.sh --noglue
- Falls back to HTTP/2 if QUIC protocol fails
- Works on both MinGW and WSL Linux environments
If you encounter this error:
$ docker info
The command 'docker' could not be found in this WSL 2 distro.
Enable WSL integration in Docker Desktop settings:
- Open Docker Desktop
- Go to Settings > Resources > WSL Integration
- Enable integration for your distro
For more information, visit: https://docs.docker.com/go/wsl2/
setup.md => setup guide.
- step 1: setup guide. create tunnel , DNS record and all
- step 2:
# download and run
curl -fsSL -o runn8n.sh https://raw.githubusercontent.com/vinitngr/n8n-tunnel/main/scripts/runn8n.sh
#change the variables
#grant executable permission
chmod +x runn8n.sh
./runn8n.sh
Note: The runn8n.sh
script uses specific configurations. You may need to modify variables to match your setup before running it.
curl -fsSL https://raw.githubusercontent.com/vinitngr/n8n-tunnel/main/scripts/runn8n.sh | bash