Join the community today
Become a Member

Master Branch prep work for GeoIP2 Lite nginx module support 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, May 10, 2018.

  1. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    10:19 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    prep work for GeoIP2 Lite nginx module support 123.09beta01

    - prep work for MaxMind GeoIP2 Lite database support via nginx GeoIP2 nginx module https://github.com/leev/ngx_http_geoip2_module due to eventual deprecation and shutdown of legacy GeoIP database updates and downloads after January 19th, 2019 https://dev.maxmind.com/geoip/legacy/geolite/
    - update adds support for downloading MaxMind GeoIP2 Lite databases for country and city downloads https://dev.maxmind.com/geoip/geoip2/geolite2/ while still also downloading the legacy GeoIP databases from https://dev.maxmind.com/geoip/legacy/geolite/. Updated routine will only overwrite existing legacy GeoIP databases if a precheck of the download urls are considered working = HTTP 200 status code. When MaxMind eventually discontinues the download ability of legacy GeoIP database, the existing downloaded database will remain intact just there won't be any more updates from MaxMind and need to use the GeoIP2 Lite database instead
    - fresh Centmin Mod 123.09beta01 installs will have updated entries in /usr/local/nginx/conf/geoip.conf which are commented out by default for GeoIP2 Lite configuration. One will define the geoip2 /usr/share/GeoIP/GeoLite2-City.mmdb context and other will define the geoip2 /usr/share/GeoIP/GeoLite2-Country.mmdb context wrapped in {}. For existing Centmin Mod installs, you would need to add the missing configuration settings into /usr/local/nginx/conf/geoip.conf as per contents shown at https://github.com/centminmod/centminmod/blob/123.09beta01/config/nginx/geoip.conf as end users may have customised their /usr/local/nginx/conf/geoip.conf file and overwriting the contents of end users customised file would not be a good idea.
    - to enable nginx GeoIP2 module support in Centmin Mod 123.09beta01 Nginx builds, need to add 2 variables into persistent config file at /etc/centminmod/custom_config.inc before recompiling nginx via centmin.sh menu option 4


    NGINX_GEOIPTWOLITE='y'
    NGXDYNAMIC_GEOIPTWOLITE='y'

    Continue reading...

    Centmin Mod Github Master branch

    Master branch is where most recent commits are made as at May 24, 2015.