Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate DS-4409 significant changes to GeoLite2 usage terms #700

Open
alawvt opened this issue May 18, 2020 · 1 comment
Open

Investigate DS-4409 significant changes to GeoLite2 usage terms #700

alawvt opened this issue May 18, 2020 · 1 comment

Comments

@alawvt
Copy link
Contributor

alawvt commented May 18, 2020

DS-4400 significant changes to GeoLite2 usage terms
notes that the terms for and access to the Geolite database has changed. This database is used for IP locations for SOLR statistics.

We currently used the default download location for DSpace 6.3, listed in dspace/src/main/config/build.xml,

<!-- Default location of GeoLite2 City database to download. This may be overridden, if URL path changes. -->
    <property name="geolite" value="http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz" />

2020-05-18, I added a comment in that issue seeking more information.

@alawvt
Copy link
Contributor Author

alawvt commented May 18, 2020

http://dspace.2283337.n4.nabble.com/Help-need-with-GeoLite-td4692642.html#a4692682 advises,

MaxMind provides their own tool (geoipupdate) which implements their new requirement for authentication when downloading. The tool may already be available in your OS' package manager. Debian has it (and thus Ubuntu does).

When you sign up for a MaxMind account, you agree to keep your copy of the database updated.

Let 'geoipupdate' download a copy of the database where it will, and configure DSpace to use that copy by setting the value of 'usage-statistics.dbfile' in config/local.cfg to point to that copy. 'geoipupdate' stores the local database copy at the path indicated by 'DatabaseDirectory' in '/etc/GeoIP.conf'.

I have a 'cron' job set up to run 'geoipupdate' twice a month, to keep the database updated.

Currently dspace/config/modules/usage-statistics.cfg lists

# The location for the Geo Database retrieved on update/installation
usage-statistics.dbfile = ${dspace.dir}/config/GeoLite2-City.mmdb

This can be overwritten in local.cfg as instructed above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant