Ngrok provides a paid service to connect custom domain to a service. This script provides similar functionality which requires to be run everytime ngrok is started/restarted.
It updates your custom domain's CNAME record to the ngrok subdomain assigned to your service.
$ ./script.sh -n [ngrok name] -k [godaddy key]:[godaddy secret] -d [godaddy domain] -s [godaddy subdomain][ngrok name]: Ngrok service name thats deployed (named service can be created using ngrok configuration file)
[godaddy key]:[godaddy secret]: GoDaddy key and secret joined using a colon
[godaddy domain]: Your domain on GoDaddy
[godaddy subdomain]: Subdomain to be created/updated by this script to have ngrok subdomain