X-Git-Url: https://git.tld-linux.org/?p=packages%2Flighttpd.git;a=blobdiff_plain;f=mod_maxminddb.conf;fp=mod_maxminddb.conf;h=fcc3e66add7f271aea1a8977559bae9f9b737fb1;hp=0000000000000000000000000000000000000000;hb=c5ecec4df0df09459e51e9c2ecc5d44872e62cbb;hpb=26fea3db2dc643f86c9df1999b23b430571e17f5 diff --git a/mod_maxminddb.conf b/mod_maxminddb.conf new file mode 100644 index 0000000..fcc3e66 --- /dev/null +++ b/mod_maxminddb.conf @@ -0,0 +1,34 @@ +# Module for IP Based Geographic Lookups +# +# Documentation: https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModMaxMindDB +# +# mod_maxminddb is a module for fast ip/location lookups. It uses MaxMind +# GeoIP2 databases. If the IP was found in the database, the module sets the +# appropriate environment variables to the request, thus making this +# information available to other modules/fcgi. +# +# Redirecting based on GeoIP2 data can be performed inside lighttpd using +# mod_magnet or using backend CGI, FastCGI, SCGI, etc. +# +# mod_maxminddb consumes MaxMind GeoIP2 databases. This is the successor to +# GeoIP Legacy databases. GeoIP Legacy databases were discontinued 2 Jan 2019 +# (https://dev.maxmind.com/geoip/legacy/release-notes/) and mod_geoip is now +# deprecated. + +server.modules += ( + "mod_maxminddb" +) + +# default: "disable" +#maxminddb.activate = "enable" + +#maxminddb.db = "/path/to/the/GeoIP2/database.mmdb" + +# list of environment variables to set and associated lookup keys in GeoIP2 .mmdb. +#maxminddb.env = ( +# "GEOIP_COUNTRY_CODE" => "country/iso_code", +# "GEOIP_COUNTRY_NAME" => "country/names/en", +# "GEOIP_CITY_NAME" => "city/names/en", +# "GEOIP_CITY_LATITUDE" => "location/latitude", +# "GEOIP_CITY_LONGITUDE" => "location/longitude", +#)