Nanoprogrammed Penultimate Musicianship
Miss any of our Open RFC calls?Watch the recordings here! »

maxmind-geolite-mirror

1.1.6 • Public • Published

Build Status Coverage Status WinCI status Dependencies

maxmind-geolite-mirror

Mirror maxmind GeoIP version 2 databases from maxmind.com.

Install

npm install -g maxmind-geolite-mirror
mkdir -p /usr/local/share/GeoIP
/usr/local/bin/maxmind-geolite-mirror

The last command will download all the databases to the GeoIP share directory.

Configure

The MaxMind license key must be configured. It can be set by:

  1. editing config.js
  2. setting the environment variable MAXMIND_LICENSE_KEY

If neither is set, the script will emit an error prompting you to edit config.js.

Update databases

/usr/local/bin/maxmind-geolite-mirror

Set this to run once a week or so. Downloads will only happen if the remote file is newer than the local version.

Custom path to store maxmind database

If access to /usr/local/share/GeoIP is unavailable, the following environment variable is available: MAXMIND_DB_DIR. E.g.

export MAXMIND_DB_DIR=/home/example/maxmind-db

Contributions

Contributions are welcome, especially if they include tests. See DEVELOP.md

Contributors

  • Carl Banbury

badges

NPM

Install

npm i maxmind-geolite-mirror

DownloadsWeekly Downloads

893

Version

1.1.6

License

MIT

Unpacked Size

17.5 kB

Total Files

13

Last publish

Collaborators

  • avatar
  • avatar