Cloudflare Tunnel
Cloudflare Tunnel allows you to expose your TRIGRA webhook endpoint to the internet without opening ports or configuring firewalls.
Benefits
Section titled “Benefits”- ✅ No port forwarding required
- ✅ Automatic HTTPS with valid certificate
- ✅ DDoS protection included
- ✅ No public IP needed
Automatic Setup
Section titled “Automatic Setup”The TRIGRA quick-install script automatically sets up Cloudflare Tunnel:
curl -fsSL https://raw.githubusercontent.com/Taiwrash/trigra/main/quick-install.sh | bash -s -- defaultAfter installation, you’ll see your webhook URL displayed in a styled box.
Manual Setup
Section titled “Manual Setup”Step 1: Install cloudflared
Section titled “Step 1: Install cloudflared”macOS:
brew install cloudflare/cloudflare/cloudflaredDebian/Ubuntu:
curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.debsudo dpkg -i cloudflared.debStep 2: Get Service IP/Port
Section titled “Step 2: Get Service IP/Port”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}"Step 3: Start Tunnel
Section titled “Step 3: Start Tunnel”cloudflared tunnel --url http://${SERVICE_IP}:${PORT}Running as a Service
Section titled “Running as a Service”For persistent tunnels, run cloudflared as a systemd service. See our systemd configuration in the full documentation.
Named Tunnels (Production)
Section titled “Named Tunnels (Production)”For production, use named tunnels with persistent URLs:
cloudflared tunnel logincloudflared tunnel create trigra-webhookcloudflared tunnel route dns trigra-webhook webhook.yourdomain.comcloudflared tunnel run trigra-webhookYour permanent webhook URL: https://webhook.yourdomain.com/webhook