Skip to main content

Simplify Privacy Using Caddy and CloudFlare Tunnels

Let's say you are pitching an AI application to VCs for raising funds. Instead of browsing http://localhost/, you can have professional Domain Name with CloudFlare. But the application is still running on your development or SIT environment.

Conceptual Diagram

How-to Setup

For the sake of simplicity, please use Docker compose.yaml provided by this repository.
TUNNEL_TOKEN and PUBLIC_HOSTNAME can be found at Cloudflare Zero Trust Networks. If not present then create a new tunnel.

Fork the repo and set required Codespace secrets environment varibales to match TUNNEL_TOKEN and PUBLIC_HOSTNAME:

Option 2: Local DevContainer

Clone the repo locally then run:

$ git clone https://github.com/piky/open-webui.git
$ cd open-webui
$ export TUNNEL_TOKEN=<cloudlfare-tunnle-token>
$ export PUBLIC_HOSTNAME=<subdomain.your-domain.com>
$ docker compose up -d