File: //etc/nginx/conf.d/a_LinQhost_geoip2.conf
# File managed by Puppet
################################################
# Load maxmind geoip2 database
# https://dev.maxmind.com/geoip/geoip2/geolite2/
geoip2 /usr/share/GeoIP/GeoLite2-Country.mmdb {
$ipm_country_code default=ZZ source=$remote_addr country iso_code;
$ipm_country_name country names en;
$ipm_continent_code continent code;
# Legacy
$geoip2_data_country_code default=NL source=$remote_addr country iso_code;
$geoip2_data_country_name country names en;
$geoip2_data_continent_code continent code;
}
geoip2 /usr/share/GeoIP/GeoLite2-City.mmdb {
$ipm_city_name default=Timbuktu names en;
# Legacy
$geoip2_data_city_name default=Timbuktu names en;
}