Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ngrok default param for apache share #1892

Merged
merged 2 commits into from
Oct 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion resources/aliases
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,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 @@ -237,6 +237,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