Self-host the relay

You still need wildcard DNS. Point *.your.domain and the apex name at the machine that runs Compose. The certificate is issued for those names. Traffic to the relay is TLS, and the relay you run can read it.

GitHub registry

A release tag publishes ghcr.io/cristipufu/tunnelite, ghcr.io/cristipufu/tunnelite-caddy, and the Helm chart oci://ghcr.io/cristipufu/tunnelite-helm. Use the tag without the leading v.

Helm

$ kubectl create secret generic tunnelite-dns --from-literal=CLOUDFLARE_API_TOKEN="$TOKEN"
$ helm install tunnelite oci://ghcr.io/cristipufu/tunnelite-helm --version 1.2.3 \
  --set domain=tunnel.example.com \
  --set email=you@example.com \
  --set cloudflare.existingSecret=tunnelite-dns

The chart runs one pod. Caddy is in that pod and dials the relay on localhost, so the relay port is not a Service. Point wildcard DNS at the load balancer. Replace 1.2.3 with the release you want.

Compose

Copy deploy/.env.example to deploy/.env. Set TUNNELITE_DOMAIN, CADDY_EMAIL, and TUNNELITE_DNS_TOKEN. The included Caddy build uses Cloudflare's DNS API for the wildcard certificate. Swap the DNS module in deploy/Caddy.Dockerfile for another provider.

Compose

$ docker compose --env-file deploy/.env -f deploy/docker-compose.yml up --build

Point the CLI at it

CLI

$ tunnelite http://localhost:3000 --publicUrl https://tunnel.example.com

Replace tunnel.example.com with TUNNELITE_DOMAIN. TCP tunnels are available only on a server you host. The hosted service at tunnelite.com does not open public TCP ports.

Copied to clipboard!