Put your app online

An endpoint gives your app a public URL. Start one with the agent:

bash

ngrok http 8080 --url https://api.example.ngrok.app

Then add a Traffic Policy to block requests that lack an API key:

yaml

on_http_request:  - expressions:      - "!('x-api-key' in req.headers)"    actions:      - type: deny        config:          status_code: 401
Endpoint typeStarts fromLives
Agentngrok httpwhile the agent runs
Cloudthe API or dashboarduntil you delete it
  • Install the agent
  • Add your authtoken
  • Reserve a domain

Cloud endpoints keep their URL when the agent restarts.

See the endpoints docs for more.