Skip to content

Commit

Permalink
chore: adds automatic external ip detection
Browse files Browse the repository at this point in the history
  • Loading branch information
rattrap committed Feb 6, 2024
1 parent dc11f4f commit 3723e2d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ else
if [[ -z "${ADVERTISED_IP}" ]]; then
echo "ADVERTISED_IP is not set."
else
if [ "$ADVERTISED_IP" = "auto" ]; then
ADVERTISED_IP=$(curl icanhazip.com 2>/dev/null)
fi
FLAGS="--public-ip ${ADVERTISED_IP}"
fi

Expand Down

0 comments on commit 3723e2d

Please sign in to comment.