Code Monkey home page Code Monkey logo

n8n-cloudflare's Introduction

n8n with Cloudflare Tunnel

This repository contains a Docker Compose setup for running n8n with Cloudflare as a tunneling service. n8n is a workflow automation tool that allows you to connect different services and APIs. Cloudflared exposes local servers behind NATs and firewalls to the public internet over secure tunnels.

Prerequisites

Before you begin, ensure you have the following configured:

Setup

  1. Clone the Repository

    Clone this repository to your local machine:

    git clone https://github.com/joffcom/n8n-cloudflare.git
  2. Cloudflare Configuration

    • Access the Tunnel configuration page in Cloudflare under Zero Trust > Networks > Tunnels
    • Click Create Tunnel and select Cloudflared as the Connector
    • Give your tunnel a name, This name is used for you to identify the tunnel and won't be part of the domain
    • Copy your access token and put it in the .env file replacing your_tunnel_token
    • Configure your subdomain place this in the .env file replacing https://n8n.your-domain.com
    • For the Service select http and set the url to n8n:5678 this is used for the tunnel routing.
  3. Configure n8n

    Optionally, you can configure n8n by modifying environment variables in the docker-compose.yml file under the n8n service.

Running the Application

To run n8n with Cloudflare, use the following command:

docker compose up -d

This command will start both n8n and Cloudflared services. Cloudflared will provide a URL that tunnels to your n8n instance.

Accessing n8n

After running the Docker Compose command you can access n8n by navigating to the URL configured in Cloudflare in your web browser.

Stopping the Application

To stop the n8n and Cloudflared services, use:

docker compose down

n8n-cloudflare's People

Contributors

joffcom avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.