HTTP Tunnel

HTTP Tunnel 为运行在集群内的 HTTP 服务提供公网可达的代理, 用于方便从本地调试在集群内的 HTTP 服务。

HTTP Tunnel Server 运行在由 SCC 服务商提供的公网环境中,HTTP Tunnel Client 由用户启动发起连接到 HTTP Tunnel Server 建立 Tunnel 并生成一个公网可达的随机 URL。当用户在本地访问 URL 到达 HTTP Tunnel Server 时其通过之前建立 Tunnel 发送流量到达 HTTP Tunnel Client 其负责转发到到指定的集群内的 HTTP 服务。

安装命令行工具

参见 SCC 命令行工具

使用

scc tun http [[<ip>]:]<port>

代理集群当前节点的 8080 端口

Input
scc tun http 8080
Output
🎉 You're ready to go live at https://4dd56f66-1109-421b-94c7-222f49639c49.tunnel.paracloud.com => http://localhost:8080

代理集群其它节点 9100 端口

Input
scc tun http 10.254.129.51:9100
Output
🎉 You're ready to go live at https://4e210055-f6ad-47fb-8ea0-66f875913a9b.tunnel.paracloud.com => http://10.254.139.51:9100