Skip to content

Instantly share code, notes, and snippets.

@jdwolk
Last active October 11, 2018 19:33
Show Gist options
  • Save jdwolk/334a68dc992786e70cbaab02320d4cb6 to your computer and use it in GitHub Desktop.
Save jdwolk/334a68dc992786e70cbaab02320d4cb6 to your computer and use it in GitHub Desktop.
Multiple ngrok tunnels in same process
(
sleep 1
curl --request POST \
--url http://localhost:4040/api/tunnels \
--header 'content-type: application/json' \
--data '{
"addr": 8081,
"proto": "http",
"name": "voyage-js",
"subdomain": "jdwolk-voyage-js"
}'
curl --request POST \
--url http://localhost:4040/api/tunnels \
--header 'content-type: application/json' \
--data '{
"addr": 5000,
"proto": "http",
"name": "tracking",
"subdomain": "jdwolk-tracking",
"host-header": "rewrite 0.0.0.0:5000"
}'
) &
ngrok http -subdomain=jdwolk -host-header=rewrite 0.0.0.0:3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment