From dff99abbfa3f2dfc91a17a7754d6cd4b507bb55f Mon Sep 17 00:00:00 2001 From: "srvproxy001.itguys.com.br" Date: Sat, 27 Sep 2025 14:04:18 -0300 Subject: [PATCH] =?UTF-8?q?[Auto-Sync]=20Atualiza=C3=A7=C3=A3o=20das=20con?= =?UTF-8?q?figura=C3=A7=C3=B5es=20em=20srvproxy001.itguys.com.br=20-=20202?= =?UTF-8?q?5-09-27=2014:04:18?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx/nginx.conf | 9 +++++++++ 1 file changed, 9 insertions(+) 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