Welcome to Centmin Mod Community
Register Now

Beta Branch part 4 update Centmin Mod's Maxmind GeoLite2 database routines in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jan 2, 2020.

  1. eva2000

    eva2000 Administrator Staff Member

    54,529
    12,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,781
    Local Time:
    8:15 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    part 4 update Centmin Mod's Maxmind GeoLite2 database routines in 123.09beta01


    Add maxmind geolite2 database API download routine.

    When MM_LICENSE_KEY is set in persistent config file at /etc/centminmod/custom_config.inc, download urls will be set to following variables
    Code (Text):
    maxmind_city_url="https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=$MM_LICENSE_KEY&suffix=tar.gz"
    maxmind_country_url="https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=$MM_LICENSE_KEY&suffix=tar.gz"
    maxmind_asn_url="https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN&license_key=$MM_LICENSE_KEY&suffix=tar.gz"
    

    When MM_LICENSE_KEY is not set, download urls will be set to following variables using last publicly available Dec 23, 2109 version until you set MM_LICENSE_KEY that is
    Code (Text):
    maxmind_city_url='https://centminmod.com/centminmodparts/geoip2-lite/GeoLite2-City.tar.gz'
    maxmind_country_url='https://centminmod.com/centminmodparts/geoip2-lite/GeoLite2-Country.tar.gz'
    maxmind_asn_url='https://centminmod.com/centminmodparts/geoip2-lite/GeoLite2-ASN.tar.gz'


    Continue reading...

    123.09beta01 branch