ip2location / ip2location-piwik

IP2Location geolocation service to lookup a visitor's location in Matomo (Piwik) 4.x, 5.x. This service allows you to determine the country, region, city, coordinates, zip code, time zone, ISP, domain, MCC, MNC, mobile brand name, elevation, usage type, address type, IAB category, and more, associated with any given IP address.
http://www.ip2location.com
32 stars 18 forks source link

Custom location for IP2Location bin files #91

Closed gramakri closed 9 months ago

gramakri commented 1 year ago

Currently, the IP2Location bin files have to be located in the source tree under $PIWIKI_SRC/misc . There is a whole bunch of things upstream under misc - https://github.com/matomo-org/matomo/tree/5.x-dev/misc/ . When deploying with docker, we delete the old matomo image and replace with new matomo image. Every time we do this, we have to remember to copy over the ip2location database. misc cannot be mounted as a volume in docker either and be part of backup because there is already some upstream source code there.

Is it possible to set an alternate location for the IP2Location bin files? This will immensely help deployment.

ip2location commented 1 year ago

Thanks for the feedback. We will plan to add a custom location in the coming release.

ip2location commented 9 months ago

This feature was added in version 5.2.0.

gramakri commented 9 months ago

Thanks!