Cloudflared Tunnel + ttyd: Exposing a Local Web Terminal to a Public Domain via a Named Tunnel

The SkillHub community skill "Cloudflared Tunnel + ttyd Inbound/Outbound Tunneling" (v1.2.0) is designed for scenarios where you need to access a local ttyd instance or local HTTP services under a Cloudflare custom domain. Leveraging cloudflared named tunnels and accompanying scripts, it covers cloudflared/ttyd installation, tunnel and DNS reuse or creation, startup parameters, and troubleshooting for issues such as 502/530 errors and WebSocket 404s. It also explains how to work around DNS hijacking of api.cloudflare.com within a sandbox environment using curl --resolve. Install it with `skillhub install cloudflared-tunnel-ttyd --namespace user_38816413`. A Cloudflare API Token is required (requires_api_key=true).

Read More