Skip to content
This repository has been archived by the owner on Jan 6, 2021. It is now read-only.

BundleStars/maxmind-geolite-mirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Dependencies Coverage Status WinCI status

NPM

maxmind-geolite-mirror

Mirror maxmind GeoIP databases from geolite.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.

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 and are in the form of squashed GitHub Pull Requests.

How to squash:

git remote add msimerson https://github.com/msimerson/maxmind-geolite-mirror.git
git rebase -i msimerson/master

Then change pick to s for all but the first commit and save changes. Then force push the squashed branch to your repo:

git push -f origin

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published