# ngrok **Repository Path**: gateslu1986_admin/ngrok ## Basic Information - **Project Name**: ngrok - **Description**: 从GitHub上下载,并进行go.mod改造 - **Primary Language**: Go - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2021-04-13 - **Last Updated**: 2024-06-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ###该版本为go.mod修改版本 ###在此非常感谢[koolshare](http://koolshare.cn/forum-72-1.html)的[小宝](http://koolshare.cn/space-uid-2380.html)宝大对ngrok进行的二次开发。 # ngrok - Introspected tunnels to localhost ([homepage](https://ngrok.com)) ### "I want to securely expose a web server to the internet and capture all traffic for detailed inspection and replay" ![](https://ngrok.com/static/img/overview.png) ## What is ngrok? ngrok is a reverse proxy that creates a secure tunnel between from a public endpoint to a locally running web service. ngrok captures and analyzes all traffic over the tunnel for later inspection and replay. ## What can I do with ngrok? - Expose any http service behind a NAT or firewall to the internet on a subdomain of ngrok.com - Expose any tcp service behind a NAT or firewall to the internet on a random port of ngrok.com - Inspect all http requests/responses that are transmitted over the tunnel - Replay any request that was transmitted over the tunnel ## What is ngrok useful for? - Temporarily sharing a website that is only running on your development machine - Demoing an app at a hackathon without deploying - Developing any services which consume webhooks (HTTP callbacks) by allowing you to replay those requests - Debugging and understanding any web service by inspecting the HTTP traffic - Running networked services on machines that are firewalled off from the internet ## Downloading and installing ngrok ngrok has _no_ runtime dependencies. Just download a single binary for your platform and run it. Some premium features are only available by creating an account on ngrok.com. If you need them, [create an account on ngrok.com](https://ngrok.com/signup). - [Linux](https://dl.ngrok.com/linux_386/ngrok.zip) - [Mac OSX](https://dl.ngrok.com/darwin_386/ngrok.zip) - [Windows](https://dl.ngrok.com/windows_386/ngrok.zip) ## Install - One click Install ngrok wget http://soft.clang.cn/ngrok/ngrok_install.sh && bash ./ngrok_install.sh ## Developing on ngrok [ngrok developer's guide](docs/DEVELOPMENT.md) ======= # ngrok-1.7 # 生成绑定信息go文件 github.com/jteeuwen/go-bindata使用github.com/go-bindata/go-bindata替代 任意非go项目执行以下命令 ``` go get github.com/go-bindata/go-bindata GOOS="" GOARCH="" go install github.com/go-bindata/go-bindata/go-bindata ``` # 编译 ``` cd src/ngrok go mod vendor # -tags release/debug go build -tags release main/ngrok/ngrok.go go build -tags release main/ngrokd/ngrokd.go ```