Join the community today
Become a Member

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

    45,676
    10,371
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,094
    Local Time:
    5:52 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    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