Public | Automated Build

Last pushed: 2 years ago
Short Description
Generate ngrok with tls, and you can deploy it to your server
Full Description


Build Image

docker build -t keepwn/ngrok-self-hosting .

Generate Ngrok-Self

cd ~
mkdir ngrok-bin
docker run --rm -e DOMAIN="" -v $(pwd)/ngrok-bin:/release keepwn/ngrok-self-hosting

Ngrok server and client binaries will be available in $(pwd)/ngrok-bin on the host.

Environment Variables

variables default meaning
DOMAIN required domain name that ngrok running on
TUNNEL_PORT 4443 port that ngrok server's control channel listens
HTTP_PORT 80 port that ngrok server's http tunnel listents
HTTPS_PORT 443 port that ngrok server's https tunnel listents

Run Server

You need copy ngrok-bin to server, and docker must be installed in server.

cd ngrok-bin
Docker Pull Command