1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 16:10:08 +01:00

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.
This commit is contained in:
René de Kat
2016-08-14 09:53:13 +01:00
committed by GitHub
parent e8902cc5ed
commit 8fc59dd748

2
valet
View File

@@ -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