Skip to content

Cloudflare Tunnel

Cloudflare Tunnel allows you to expose your TRIGRA webhook endpoint to the internet without opening ports or configuring firewalls.

  • ✅ No port forwarding required
  • ✅ Automatic HTTPS with valid certificate
  • ✅ DDoS protection included
  • ✅ No public IP needed

The TRIGRA quick-install script automatically sets up Cloudflare Tunnel:

Terminal window
curl -fsSL https://raw.githubusercontent.com/Taiwrash/trigra/main/quick-install.sh | bash -s -- default

After installation, you’ll see your webhook URL displayed in a styled box.

macOS:

Terminal window
brew install cloudflare/cloudflare/cloudflared

Debian/Ubuntu:

Terminal window
curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb
sudo dpkg -i cloudflared.deb
Terminal window
SERVICE_IP=$(kubectl get svc trigra -o jsonpath='{.spec.clusterIP}')
PORT=$(kubectl get svc trigra -o jsonpath='{.spec.ports[0].port}')
echo "Service: http://${SERVICE_IP}:${PORT}"
Terminal window
cloudflared tunnel --url http://${SERVICE_IP}:${PORT}

For persistent tunnels, run cloudflared as a systemd service. See our systemd configuration in the full documentation.

For production, use named tunnels with persistent URLs:

Terminal window
cloudflared tunnel login
cloudflared tunnel create trigra-webhook
cloudflared tunnel route dns trigra-webhook webhook.yourdomain.com
cloudflared tunnel run trigra-webhook

Your permanent webhook URL: https://webhook.yourdomain.com/webhook