ngrok projectThis is a fork project for ngrok, make its easier to use.
PLEASE READ THIS PARAGRAPH FIRST, VERY IMPORTANT !!!
To simplify the ngrok client build/usage, the tls verify logic will be skipped, so your traffic is in-secure, please DO NOT use this service to transfer sensitive/production data.
The server will generate a self-signed ssl cert as its tls encryption cert, and client will connect to server without ssl chain verify (but still transfer data under tls protection), in this solution, the users of self hosted service doesn't need to build the client/server again and again.
download binary from snapshot build
then start your tunnel with command
ngrok --serveraddr self_host_domain.com:4443 81
self_host_domain:transfer_port, defaultly, the transfer port should be 4443serviceaddr81 is your local service port
serviceaddr192.168.3.24:3000another way: just run docker build -t ngrok -f client.Dockerfile . to build ngrok client image
run following command in your server
docker run --name ngrokd -d --restart=always -p 4080:80 -p 4443:4443 -e DOMAIN=self_host_domain.com theosun/ngrok-fork
self_host_domain.com(first of first, you should have your own domain)
just ref this doc
*.your_host_domain:443 {
gzip
proxy / http://127.0.0.1:4080 {
transparent
websocket
}
tls wildcardcertpath wildcardcertkeypath
}
for other server like nginx, you can find many many docs from search engine.
Content type
Image
Digest
Size
9 MB
Last updated
almost 6 years ago
docker pull theosun/ngrok-fork