🗃️ Committing everything that changed 🗃️

rootfs/usr/local/bin/echoip
rootfs/usr/local/etc/docker/bin/
rootfs/usr/local/etc/docker/init.d/zz-echoip.sh
This commit is contained in:
casjay
2024-07-07 14:38:30 -04:00
parent 5fd252c017
commit 2b2322d6a6
2 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
#!/usr/bin/env sh
[ -n "$SERVICE_PORT" ] || SERVICE_PORT="80"
[ -n "$WORK_DIR" ] || WORK_DIR="/opt/echoip"
/opt/echoip/echoip -r -s -p -l :$SERVICE_PORT -H X-Real-IP -H x-forwarded-for -t $WORK_DIR/html -a $WORK_DIR/geoip/GeoLite2-ASN.mmdb -c $WORK_DIR/geoip/GeoLite2-City.mmdb -f $WORK_DIR/geoip/GeoLite2-Country.mmdb

View File

@@ -119,7 +119,7 @@ SERVICE_UID="0" # set the user id
SERVICE_GID="0" # set the group id
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# execute command variables - keep single quotes variables will be expanded later
EXEC_CMD_BIN='echoip' # command to execute
EXEC_CMD_BIN='echoip-cli' # command to execute
EXEC_CMD_ARGS='' # command arguments
EXEC_PRE_SCRIPT='sleep 60' # execute script before
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -