Last active
October 11, 2018 19:33
-
-
Save jdwolk/334a68dc992786e70cbaab02320d4cb6 to your computer and use it in GitHub Desktop.
Multiple ngrok tunnels in same process
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( | |
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