diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 640a30e..43609cb 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -91,10 +91,14 @@ http { # --- CONFIGURAÇÃO DO MÓDULO GEOIP2 --- # Carrega o banco de dados GeoIP e mapeia as variáveis usadas no log. - # SUBSTITUA O CAMINHO ABAIXO PELO CAMINHO CORRETO NO SEU SERVIDOR. + # Carrega o banco de dados de Cidades/Países geoip2 /usr/share/GeoIP/GeoLite2-City.mmdb { $geoip2_country_code data country code; - $geoip2_city_name data city names en; + $geoip2_city_name data city names en; + } + + # Carrega o banco de dados de Provedor (ASN) + geoip2 /usr/share/GeoIP/GeoLite2-ASN.mmdb { $geoip2_isp data autonomous_system_organization; }