webrtc-relay / scripts /expose_with_cloudflared.sh
josephrw's picture
Upload folder using huggingface_hub
915730f verified
Raw
History Blame Contribute Delete
411 Bytes
#!/usr/bin/env bash
set -euo pipefail
if ! command -v cloudflared >/dev/null 2>&1; then
echo "cloudflared is not installed."
echo "macOS: brew install cloudflared"
exit 1
fi
echo "Starting temporary public HTTPS tunnel to local engine..."
echo "Keep this terminal open. Open the generated https:// URL on iPhone or put it in HF Space as LOCAL_ENGINE_URL."
cloudflared tunnel --url http://localhost:8000