https://github.com/jason-cky/ngrok-nginx-docker
docker-compose method of securely setting up port forwarding from nginx server to public ngrok URL
https://github.com/jason-cky/ngrok-nginx-docker
docker-compose nginx ngrok-client reverse-proxy
Last synced: 3 months ago
JSON representation
docker-compose method of securely setting up port forwarding from nginx server to public ngrok URL
- Host: GitHub
- URL: https://github.com/jason-cky/ngrok-nginx-docker
- Owner: Jason-CKY
- Created: 2021-10-02T11:04:39.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-10-06T09:02:42.000Z (almost 5 years ago)
- Last Synced: 2025-06-22T01:48:27.332Z (about 1 year ago)
- Topics: docker-compose, nginx, ngrok-client, reverse-proxy
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ngrok-nginx-docker
Want to expose your web server to a public URL via ngork but afraid of the security concerns of forwarding your port to ngrok? Secure the connection by encapsulating the ngrok process in a docker container!
This repo is a way of containerizing a ngrok container that will route the ngrok URL to another nginx container. You can then configure nginx as a reverse proxy to route to other web services in the same docker network.
## Quick Start
```bash
docker-compose up
```
The generated ngrok URL will be shown on `localhost:4040`. Alternatively, you can curl `localhost:4040/api/tunnels` to get the list of information of the ngrok tunnels.
Run `curl localhost:4040/api/tunnels | jq '[.tunnels | to_entries[] | {"value": .value.public_url}] | map(.value) | sort_by(length) | .[1]'` to return the https link, assuming you run the docker-compose file as is.
## Extensions
You can put any ngrok command into the `command` field in the docker-compose file.