Skip to content

Commit

Permalink
Ngrok default param for apache share (#1892)
Browse files Browse the repository at this point in the history
* feat: always include header rewrite

* feat: create alias for https share
  • Loading branch information
ALameLlama authored Oct 6, 2023
1 parent db469da commit 5e3b2ef
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion resources/aliases
Original file line number Diff line number Diff line change
Expand Up @@ -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: "
Expand All @@ -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
}
Expand Down

0 comments on commit 5e3b2ef

Please sign in to comment.