Skip to content
Discussion options

You must be logged in to vote

Database format: MaxMind GeoLite2-City in .mmdb format (MaxMind DB binary).

Download timing: At build time via scripts/build-geo.js, not runtime. No scheduled updates—rebuild to refresh.

GEO_DATABASE_URL sources (checked in order):

  1. Your custom URL (if set) - supports .tar.gz or direct .mmdb
  2. MaxMind official (if MAXMIND_LICENSE_KEY set)
  3. Fallback: https://raw.githubusercontent.com/GitSquared/node-geolite2-redist/master/redist/GeoLite2-City.tar.gz

Database saved to /geo/GeoLite2-City.mmdb and loaded at runtime via maxmind package (see /src/lib/detect.ts:104-109).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Muska-Ami
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants