I’ve been noticing for a long time that the “IP Address Lookup” never returned a location, but kept telling myself that was because of the IPs being uncommon… until I found this:
Turns out I was deluding myself, because Discourse never told me I should an an API key.
If you run ./discourse-setup or edit your app.yml there is a clear place to enter your Maxmind API key.
I don’t think that it’s possible/easy to put it in Discourse, as (I’m pretty sure that) the magic that downloads the database is external to Discourse.