├── README.md ├── ngrok ├── ngrok-mac ├── ngrok.bat ├── ngrok.cfg ├── ngrok.exe └── ngrok.sh /README.md: -------------------------------------------------------------------------------- 1 | # ngrok-script 2 | A script to run local ngrok client for linux and windows 3 | 4 | This ngrok server is using http://ngrok.2bdata.com which is totally free. 5 | 6 | ## Usage 7 | 8 | windows: 9 | 10 | ``` 11 | ngrok.bat domain 12 | ``` 13 | 14 | linux or mac: 15 | 16 | ``` 17 | ./ngrok.sh domain 18 | ``` 19 | 20 | Then ngrok will run as domain `domain.tunnel.2bdata.com` 21 | 22 | 23 | -------------------------------------------------------------------------------- /ngrok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanson/ngrok-script/945daba09919561a8cff024db247b0a44bf7f8a5/ngrok -------------------------------------------------------------------------------- /ngrok-mac: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanson/ngrok-script/945daba09919561a8cff024db247b0a44bf7f8a5/ngrok-mac -------------------------------------------------------------------------------- /ngrok.bat: -------------------------------------------------------------------------------- 1 | .\ngrok.exe -config=.\ngrok.cfg -subdomain %1% 80 2 | -------------------------------------------------------------------------------- /ngrok.cfg: -------------------------------------------------------------------------------- 1 | server_addr: "tunnel.2bdata.com:4443" 2 | trust_host_root_certs: false 3 | -------------------------------------------------------------------------------- /ngrok.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanson/ngrok-script/945daba09919561a8cff024db247b0a44bf7f8a5/ngrok.exe -------------------------------------------------------------------------------- /ngrok.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | if [ "$(uname)" == "Darwin" ] 4 | then 5 | ./ngrok-mac -config=./ngrok.cfg -subdomain $1 80 6 | elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ] 7 | then 8 | ./ngrok -config=./ngrok.cfg -subdomain $1 80 9 | fi --------------------------------------------------------------------------------