From 8fc59dd74870db1a84375da8f128892ef55a575a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20de=20Kat?= Date: Sun, 14 Aug 2016 09:53:13 +0100 Subject: [PATCH] Added option to pass custom parameters to ngrok This makes it possible to add custom parameters to ngrok. For example: --region=eu -subdomain=YOUR_SUBDOMAIN Some features, like -subdomain, are only available with the paid version of Ngrok. --- valet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/valet b/valet index d083ea25c..18f05499f 100755 --- a/valet +++ b/valet @@ -46,7 +46,7 @@ then # Fetch Ngrok URL In Background... bash "$DIR/cli/scripts/fetch-share-url.sh" & - sudo -u $(logname) "$DIR/bin/ngrok" http -host-header=rewrite "$HOST.$DOMAIN:80" + sudo -u $(logname) "$DIR/bin/ngrok" http "$HOST.$DOMAIN:80" -host-header=rewrite ${*:2} exit # Finally, for every other command we will just proxy into the PHP tool