Introspected tunnels to localhost
Go JavaScript HTML Makefile
Pull request Compare This branch is 12 commits ahead, 17 commits behind inconshreveable:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
contrib
docs
src/ngrok
.gitignore
.travis.yml
CONTRIBUTORS
LICENSE
Makefile
README.md
circle.yml

README.md

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"

对原版的改进

  1. 增加授权(auth_token)的检查
  2. 强制子域名绑定
  3. 将统计数据存储
  4. 支持转发到监听端口的请求(例如监听9080,然后nginx将80端口的请求转发过来)

均依赖本地的redis实例

TODO

  1. HTTP API
  2. CNAME 支持

Redis数据定义

hset ngrok $auth_token $subdomain

zset ngrok:report $now $report