diff --git a/resources/aliases b/resources/aliases index cdc62a3dd..83f894c2c 100644 --- a/resources/aliases +++ b/resources/aliases @@ -233,7 +233,7 @@ function serve-pimcore() { function share() { if [[ "$1" ]] then - ngrok http ${@:2} $1:80 + ngrok http ${@:2} $1:80 --host-header=rewrite else echo "Error: missing required parameters." echo "Usage: " @@ -243,6 +243,19 @@ function share() { fi } +function sshare() { + if [[ "$1" ]] + then + ngrok http ${@:2} $1:443 --host-header=rewrite + else + echo "Error: missing required parameters." + echo "Usage: " + echo " sshare domain" + echo "Invocation with extra params passed directly to ngrok" + echo " sshare domain --subdomain=test1234" + fi +} + function flip() { sudo bash /vagrant/scripts/flip-webserver.sh }