We are using the upgrade logic from your library to download the latest version of the Maxmind DB during application startup and once a day. But we have multiple service instances and sometimes multiple (deployment) restarts and ran into the Maxmind download limit. Therefor we would like to have some application download the Maxmind database to a local repository. And the applications would then not go anymore to Maxmind directly to download the DB but from the local repository.
Would it be possible to adjust your download script to allow the configuration of a different URL?
var download_server = process.env.geoip_download_url || 'https://download.maxmind.com/app/geoip_download';
Just in case - this is also suggested by Maxmind so it should be fine with their license (source):
**Every account is limited to 2,000 total direct downloads (30 for GeoLite accounts) in a 24-hour period. If you have to distribute your databases across multiple servers, it is advisable that you download databases to a local repository on your network, and distribute them to other servers from there.
We are using the upgrade logic from your library to download the latest version of the Maxmind DB during application startup and once a day. But we have multiple service instances and sometimes multiple (deployment) restarts and ran into the Maxmind download limit. Therefor we would like to have some application download the Maxmind database to a local repository. And the applications would then not go anymore to Maxmind directly to download the DB but from the local repository.
Would it be possible to adjust your download script to allow the configuration of a different URL?
change https://github.com/sapics/geoip-country/blob/main/scripts/updatedb.js line 6 to something like this?
Just in case - this is also suggested by Maxmind so it should be fine with their license (source):
Thanks