Website: one page in six languages, downloads via the server, download statistics
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run

Rust server (axum) with server-side translations, OS-aware download buttons,
/download/<platform> redirecting to the latest GitHub release asset and logging
platform, version and geolocated region (no IP stored), password-protected /stats
and /stats.csv. Docker compose setup behind nginx. Ten screenshots taken with new
dev hooks (CP_FILTER, CP_PANE, CP_SORT, CP_BOARD).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-10-19 11:00:10 +03:00
parent cb55ddea29
commit 265d9d794b
90 changed files with 5073 additions and 4 deletions

19
website/docker/entrypoint.sh Executable file
View file

@ -0,0 +1,19 @@
#!/bin/sh
# Fetches the DB-IP Lite City geolocation databases (CC BY 4.0, MaxMind DB format, via the
# ip-location-db package on unpkg) when they are missing or older than 35 days, then
# starts the server. Without them the site works and downloads are stored without a country.
set -u
base="${GEOIP_URL:-https://unpkg.com/@ip-location-db/dbip-city-mmdb}"
for v in ipv4 ipv6; do
f="/app/data/dbip-city-${v}.mmdb"
if [ ! -s "$f" ] || [ -n "$(find "$f" -mtime +35 2>/dev/null)" ]; then
echo "downloading ${f##*/}"
if curl -fsSL --retry 3 --max-time 600 -o "$f.part" "$base/dbip-city-${v}.mmdb"; then
mv "$f.part" "$f"
else
rm -f "$f.part"
echo "geolocation download failed; keeping what is there"
fi
fi
done
exec chesspenguin-site