PMFlow/devops/tunnel/start-quick.sh

15 lines
475 B
Bash
Executable File

#!/bin/bash
# Cloudflare Quick Tunnel (No Domain Required)
# Generates a random stable-ish URL for the session
echo "🚀 Starting Quick Tunnel..."
echo "⚠️ Note: This uses a random trycloudflare.com URL."
echo "⚠️ For a fixed custom domain, you must PURCHASE a domain and configure it via setup.sh"
# Kill existing tunnels
pkill -f "cloudflared tunnel" >/dev/null 2>&1 || true
# Start tunnel pointing to frontend
cloudflared tunnel --url http://localhost:5174