Skip to content

Commit

Permalink
wernight#36 Persist auth token to ~/.ngrok2/ngrok.yml instead of appe…
Browse files Browse the repository at this point in the history
…nding it to command line args
  • Loading branch information
aaabramov authored and wernight committed Mar 27, 2019
1 parent eb71dd4 commit aa0a09b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN set -x \
&& adduser -h /home/ngrok -D -u 6737 ngrok

# Add config script.
COPY ngrok.yml /home/ngrok/.ngrok2/
COPY --chown=ngrok ngrok.yml /home/ngrok/.ngrok2/
COPY entrypoint.sh /

USER ngrok
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.armhf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN set -x \
&& adduser -h /home/ngrok -D -u 6737 ngrok

# Add config script.
COPY ngrok.yml /home/ngrok/.ngrok2/
COPY --chown=ngrok ngrok.yml /home/ngrok/.ngrok2/
COPY entrypoint.sh /

RUN [ "cross-build-end" ]
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fi

# Set the authorization token.
if [ -n "$NGROK_AUTH" ]; then
ARGS="$ARGS -authtoken=$NGROK_AUTH "
echo "authtoken: $NGROK_AUTH" >> ~/.ngrok2/ngrok.yml
fi

# Set the subdomain or hostname, depending on which is set
Expand Down

0 comments on commit aa0a09b

Please sign in to comment.