casjay cb8b97ae4d
Some checks failed
release-tag / release-image (push) Failing after 1m43s
🗃️ Committing everything that changed 🗃️
Dockerfile
rootfs/opt/echoip/html/index.html
rootfs/usr/local/etc/docker/bin/echoip-cli
rootfs/usr/local/etc/docker/init.d/zz-echoip.sh
2025-06-11 12:40:34 -04:00

12 lines
369 B
Bash
Executable File

#!/usr/bin/env sh
[ -n "$SERVICE_PORT" ] || SERVICE_PORT="80"
[ -n "$WORK_DIR" ] && [ -d "$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