diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 8c13717..640a30e 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -89,6 +89,15 @@ http { } limit_req_zone $limit_key zone=global_limit:20m rate=10r/s; + # --- 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. + geoip2 /usr/share/GeoIP/GeoLite2-City.mmdb { + $geoip2_country_code data country code; + $geoip2_city_name data city names en; + $geoip2_isp data autonomous_system_organization; + } + # --- DEFINIÇÃO DO FORMATO DE LOG (OBRIGATÓRIO AQUI) --- # Define um formato de log rico que pode ser chamado por qualquer site. log_format detailed_proxy escape=json