Add GeoIP country fallback for link click analytics.
Deploy Ladill Link / deploy (push) Successful in 39s

Resolve countries from CDN headers first, then MaxMind GeoLite2 via visitor IP, with an artisan command to download and refresh the database.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-04 23:36:01 +00:00
co-authored by Cursor
parent af0bdf9081
commit 344bf76391
13 changed files with 532 additions and 12 deletions
+5
View File
@@ -46,6 +46,11 @@ IDENTITY_API_KEY_LINK=
LINK_PRICE_PER_LINK_GHS=0.05
# Country analytics: MaxMind GeoLite2 (free account at https://www.maxmind.com/en/geolite2/signup)
MAXMIND_ACCOUNT_ID=
MAXMIND_LICENSE_KEY=
LINK_GEOIP_DATABASE=
AFIA_ENABLED=true
AFIA_PRODUCT=link
AFIA_PROVIDER=openai