From 5d612361f4435d38776c72249235ce25168e23e9 Mon Sep 17 00:00:00 2001 From: Andrea Baron Date: Mon, 17 Oct 2016 12:12:09 +0200 Subject: [PATCH] Allows setting a custom region --- entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index a2897f9..7215ceb 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -43,6 +43,11 @@ elif [ -n "$NGROK_HOSTNAME" ] || [ -n "$NGROK_SUBDOMAIN" ]; then fi fi +# Set a custom region +if [ -n "$NGROK_REGION" ]; then + ARGS="$ARGS -region=$NGROK_REGION " +fi + if [ -n "$NGROK_HEADER" ]; then ARGS="$ARGS -host-header=$NGROK_HEADER " fi