Sign inSign up

dhso/ngrok

By dhso

•Updated over 7 years ago

python ngrok

Image
0

929

dhso/ngrok repository overview

⁠dhso/ngrok

Another ngrok client by python.

⁠start ngrokd service

docker run -d \
--name ngrokd \
--net=host \
--restart=always \
sequenceiq/ngrokd:latest \
-httpAddr=:4480 \
-httpsAddr=:4444 \
-domain=xxx.com

Please remember to modify your domain name resolution

A | *.xxx.com | xxx.xxx.xxx.xxx

⁠run ngrok client

docker run -d \
--name ngrok \
--net=host \
--restart=always \
-e NGROK_HOST=xxx.com|xxx.xxx.xxx.xxx \
-e NGROK_PORT=4443 \
-e NGROK_BUFSIZE=8192 \
-v ngrok_app:/app \
dhso/ngrok:latest

⁠config

ENVVAL
NGROK_HOSTyour ngrokd domain or IP
NGROK_PORTdefault 4443
NGROK_BUFSIZEdefault 8192
in ngrok container
cd /app
edit ngrok.json
save ngrok.json and restart ngrok container

⁠ngrok.json example

[{
    "protocol": "http",
    "hostname": "www.xxx.com",
    "subdomain": "",
    "rport": 0,
    "lhost": "127.0.0.1",
    "lport": 80
},{
    "protocol": "http",
    "hostname": "",
    "subdomain": "www",
    "rport": 0,
    "lhost": "127.0.0.1",
    "lport": 80
},{
    "protocol": "tcp",
    "hostname": "",
    "subdomain": "",
    "rport": 2222,
    "lhost": "127.0.0.1",
    "lport": 22
}]

Tag summary

Content type

Image

Digest

Size

42.1 MB

Last updated

over 7 years ago

docker pull dhso/ngrok