🗃️ Committing everything that changed 🗃️

applications/
configs/
lists/
wwwroot/
This commit is contained in:
casjay
2023-08-22 17:53:03 -04:00
parent 13eaf166f5
commit 5eb3ff1598
265 changed files with 48486 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
EXEC_CMD_BIN="echoip" # command to execute
EXEC_CMD_ARGS="-t /opt/echoip/html -H x-forwarded-for -r -s -p " # command arguments
EXEC_CMD_ARGS+="-a /opt/echoip/geoip/GeoLite2-ASN.mmdb " #
EXEC_CMD_ARGS+="-c /opt/echoip/geoip/GeoLite2-City.mmdb " #
EXEC_CMD_ARGS+=" -f /opt/echoip/geoip/GeoLite2-Country.mmdb " #
[ -d "/data/geoip" ] && cp -Rf "/data/geoip/." "/opt/echoip/geoip/"
[ -d "/data/htdocs/html" ] && cp -Rf "/data/htdocs/html/." "/opt/echoip/html/"

View File

@@ -0,0 +1,11 @@
FROM golang:1.15-buster AS src
ENV GO111MODULE=on CGO_ENABLED=0
WORKDIR /go/src/github.com/mpolden/echoip
RUN apt update && apt install -yy git
RUN git clone -q https://github.com/mpolden/echoip /go/src/github.com/mpolden/echoip
RUN cd /go/src/github.com/mpolden/echoip && make
ln -sf /opt/echoip/echoip /usr/local/bin/echoip
ln -sf /opt/echoip/echoip /usr/local/bin/ifconfig
sed -i "s|REPLACE_MODIFIED|$(date +'%Y-%m-%d at %H:%M')|g" /opt/echoip/html/index.html