Browse Source

Allows setting a custom region

Andrea Baron 7 years ago
parent
commit
5d612361f4
1 changed files with 5 additions and 0 deletions
  1. 5 0
      entrypoint.sh

+ 5 - 0
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