Make your private ngrok with Docker. Support CloudFlare Universal SSL.
1.3K
Pull 3846masa/ngrok and make release-client (Recommended).
Or download from GitHub Releases.
Make file $HOME/.ngrok, write settings and rewrite server_addr.
server_addr: example.com:4443
trust_host_root_certs: false
| ENV | Description | Required |
|---|---|---|
| VHOST_NAME | Based domain. (e.g. *.example.com -> example.com) | Required |
| CF_API_KEY | CloudFlare API key (See below) | Optional |
| CF_API_EMAIL | CloudFlare API email (See below) | Optional |
| VIRTUAL_HOST | nginx-proxy config. (e.g. *.example.com) | Optional |
| VIRTUAL_PORT | nginx-proxy config. (Recommend: 80) | Optional |
| HTTPS_METHOD | nginx-proxy config. (Recommend: noredirect) | Optional |
$ docker run -e VHOST_NAME=example.com 3846masa/ngrokd
$ docker run 3846masa/ngrokd ngrokd -domain=example.com -log-level=WARNING [...opts]
Edit docker-compose.yml and Run docker-compose up -d.
Set *.example.com (A/CNAME) Record to your server.
When client send -subdomain option, this image can setup CloudFlare Universal SSL automatically.
Using CloudFlare Universal SSL, you should do the following settings.
(c) 3846masa MIT
3846masa
Content type
Image
Digest
Size
72.3 MB
Last updated
almost 10 years ago
docker pull 3846masa/ngrokd