Ngrok
Running Ngrok
ngrok config check: list configuration file
ngrok config edit: edit configuration
ngrok config add-authtoken <$token>: add token to configuration
ngrok http 80: run ngrok to connect to port 80 using http
Domain Free
Cloud Edge > Domain > Create a domain
Start a tunnel from command line
ngrok http --domain=$DomainCreatedAbove 80
Start a tunnel from config
ngrok config edit
authtoken: 2S.....6v
version: 2
tunnels:
your_tunnel_name:
proto: http
hostname: $subdomain.ngrok-free.app
addr: 127.0.0.1:80
# -------------------------
# Additional options
# -------------------------
# auth: "username:password"
# host_header: rewrite
# inspect: true
# bind_tls: trueStart tunnel: ngrok start your_tunnel_name
or Start all tunnels in the configuration file: ngrok start --all
Last updated