Skip to content

vinitngr/n8n-tunnel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Starting n8n with Cloudflare Tunnel

Overview

This guide helps you set up n8n using a Cloudflare Tunnel for secure remote access.

Prerequisites

Quick Start

  1. 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

Configuration Notes

  • Falls back to HTTP/2 if QUIC protocol fails
  • Works on both MinGW and WSL Linux environments

WSL Integration

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:

  1. Open Docker Desktop
  2. Go to Settings > Resources > WSL Integration
  3. Enable integration for your distro

For more information, visit: https://docs.docker.com/go/wsl2/

Setup Instructions

setup.md => setup guide.

also a way ( ⚠️ deprecated)

  • 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

About

n8n Cloudflare Tunnel Setup with Docker

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages