7 Commits
Author SHA1 Message Date
NetworkCatsandClaude Opus 4.7 4ba00fadf5 feat: poll MMDB every 6 hours to mitigate upstream release drift
The daily scheduled update at 01:20 UTC was systematically lagging the
upstream mergedipdb release by 24h. The upstream cron nominally fires
at 01:00 UTC but GitHub Actions schedule latency shifts the actual
publish time anywhere from ~01:05 to ~06:00+ UTC, so any fixed
single-daily time misses the current release on delayed days.

Introduce DB_UPDATE_INTERVAL_HOURS (default 6, must divide 24 evenly),
shift the anchor DB_UPDATE_TIME_UTC default to 00:20, and replace
secs_until_next with secs_until_next_tick that schedules at anchor +
N*interval. Also set RUST_LOG=rustyip=info,warn in the Ansible env
template so the scheduler and "database updated successfully (N bytes)"
info logs are actually visible in docker logs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-22 07:26:57 +00:00
NetworkCats ccfa7decda feat: schedule DB updates at fixed daily UTC time instead of interval
Replace DB_UPDATE_INTERVAL_HOURS with DB_UPDATE_TIME_UTC (HH:MM format,
default 01:20) so the database update runs at a predictable time each day.
This ensures the update happens 20 minutes after the upstream Merged IP
Data release at 01:00 UTC.
2026-03-22 16:43:02 +08:00
NetworkCats c876d17e8c feat: add IPV4_DOMAIN config for dual-stack IP detection 2026-03-11 04:33:01 +08:00
NetworkCats 3c0be53aca feat: add DEV_MODE for local development without Cloudflare 2026-03-04 02:30:16 +08:00
NetworkCats de5e4df9b3 refactor: use project-local data/ directory for MMDB in local dev 2026-03-02 20:49:03 +08:00
NetworkCats 61357fd5fe feat: add Dockerfile, docker-compose, and .dockerignore 2026-03-02 20:10:56 +08:00
NetworkCats 6aaf74f911 feat: initialize project with Cargo, config, and dependencies 2026-03-02 19:55:31 +08:00