https://github.com/yowenter/http_ngrok
Copy from Ngrok, For HTTP tunneling
https://github.com/yowenter/http_ngrok
Last synced: 3 months ago
JSON representation
Copy from Ngrok, For HTTP tunneling
- Host: GitHub
- URL: https://github.com/yowenter/http_ngrok
- Owner: yowenter
- Created: 2015-09-11T08:11:13.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-02-09T10:10:04.000Z (almost 8 years ago)
- Last Synced: 2025-04-10T19:34:57.079Z (9 months ago)
- Language: Go
- Homepage:
- Size: 440 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# http_ngrok
firewall traversal http ngrok.
copy from ```SOURCE CODE``` :[https://github.com/inconshreveable/ngrok](https://github.com/inconshreveable/ngrok)
`docker pull daocloud.io/airywenter/taoge_ngrok:latest`
## NGROK SERVER
```
ngrok_server:
image: daocloud.io/airywenter/taoge_ngrok
command: sh run-server.sh
privileged: false
restart: always
ports:
- 80:80
- 4443:4443
environment:
- NGROK_DOMAIN=example.com
```
NGROK_DOMAIN : your domain
ngrok_server will listen ports:
`80` for public .
`4443` for tunnel .
## NGROK CLIENT
```
ngrok_client:
image: daocloud.io/airywenter/taoge_ngrok
command: sh run-client.sh
net: host
privileged: false
restart: always
environment:
- CLIENT_PROXY_PORT=80
- SERVER_PROXY_PORT=4443
- NGROK_DOMAIN=example.com
- SUBDOMAIN=test
```
Please use `net:host` ensure make tunnel .
- CLIENT_PROXY_PORT :the port you want make public
- SERVER_PROXY_PORT : the port for tunnel with server
- NGROK_DOMAIN : your domain
- SUBDOMAIN: if you set the environment, the ngrok subdomain won't change
`you can find the tunnel url in ngrok.log in the container !!!`