geo-from-ip
Version:
Get geolocation 🌐 information about an IP address 📲
13 lines (10 loc) • 332 B
JavaScript
// where your GeoIP databases are stored
exports.dbDir = __dirname
// local:filename, remote:geolite-url
exports.geoIpDbs = [
{
filename: 'GeoLite2-City',
remote: `https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=${process.env.MAXMIND_LICENSE_KEY}&suffix=tar.gz`,
},
]