mirror of
https://github.com/casjaysdevdocker/ifconfig
synced 2025-01-19 00:34:22 -05:00
2b2322d6a6
rootfs/usr/local/bin/echoip rootfs/usr/local/etc/docker/bin/ rootfs/usr/local/etc/docker/init.d/zz-echoip.sh
5 lines
319 B
Bash
Executable File
5 lines
319 B
Bash
Executable File
#!/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
|