Prerequisites
Before you start, ensure you have:- Miget Account – Register at Miget.
- Ngrok Free Tier Account – Sign up at Ngrok.
- Ngrok Authtoken – Navigate to the Ngrok dashboard and generate your
NGROK_AUTHTOKEN. - Miget Service – An existing or newly created Miget app with a service you want to expose.
Steps to Connect Using Ngrok
Create a Miget App
If you haven’t created an app yet:- In the Miget dashboard, click New to create a new app.
- Choose your preferred settings and give your app a name.
Get Service Endpoint
Once your service is running:- Go to the service details page.
- Copy the service hostname and port number (click Show to reveal endpoint details).
Create Another Miget App for Ngrok
- In the Miget dashboard, click New to create another app.
- Name this app something like
ngrok.
Deploy Ngrok from GitHub
- Set Builder to
Dockerfileunder Settings → Builders. - Deploy the Ngrok app from this GitHub repository: https://github.com/migetapp/ngrok
- Follow the deployment instructions in the Deploy tab:
Replace
<your-workspace> and <your-app-name> with your actual Miget workspace and app name.Add Environment Variables
Once the Ngrok app is deployed, add the following environment variables under Settings → Config Vars → Edit Config Vars:-
NGROK_AUTHTOKEN– Obtain from your Ngrok dashboard. Go to Ngrok Cloud Edge Endpoints, click Start a Tunnel, select Start a tunnel with a Docker container, and copy theNGROK_AUTHTOKENvalue. -
MIGET_SERVICE_NAME– The hostname of your service endpoint. -
MIGET_SERVICE_PORT– The port number of your service.
Get Ngrok Public Endpoint
Navigate to Ngrok Cloud Edge → Endpoints in your Ngrok dashboard. Here you will find the public endpoint provided by Ngrok.Connect to Your Service
Now that you have the public Ngrok endpoint, you can connect to your service using the appropriate client for your service type.Replace the Ngrok hostname and port with the values from your Ngrok endpoint.

