runk / node-geolite2

Maxmind's GeoLite2 Free Databases Helper
MIT License
62 stars 17 forks source link

We quickly reach the download limit #62

Open n3xem opened 5 months ago

n3xem commented 5 months ago

Thanks for the great helper.

I would like an option during installation to use existing databases instead of downloading them.

Due to a recent update, the daily download limit for Geolite has been restricted to 30. As a result, if the process of installing node-geolite2 is included in CI, for example, it will only be possible to run CI up to 30 times.

Therefore, I would like an option similar to the one mentioned at the beginning.

https://support.maxmind.com/hc/en-us/articles/4408216129947-Download-and-Update-Databases#h_01G3XX4YD33TBJ66DYEW7XF707

Thank you.

sgarner commented 5 months ago

You can try to mitigate this by caching the node_modules/geolite2/dbs directory between CI runs. If the module finds the remote database files have not changed, it won't download them again.

There is also the alternative implementation in node-geolite2-redist which includes the latest databases in its npm package.

isbkch commented 5 months ago

is there an option to specify the path to existing DBs?

runk commented 5 months ago

is there an option to specify the path to existing DBs?

Would you be able to elaborate how this'll work with this module? If you have files downloaded, the purpose of this lib is sort of unclear 🤔