ngrok
ngrok copied to clipboard
Introspected tunnels to localhost
ngrok - Introspected tunnels to localhost (homepage)
"I want to securely expose a web server to the internet and capture all traffic for detailed inspection and replay"
对原版的改进
- 增加授权(auth_token)的检查
- 强制子域名绑定
- 将统计数据存储
- 支持转发到监听端口的请求(例如监听9080,然后nginx将80端口的请求转发过来)
均依赖本地的redis实例
TODO
- HTTP API
- CNAME 支持
Redis数据定义
hset ngrok $auth_token $subdomain
zset ngrok:report $now $report