feat: re-enable geoip logging and variable mapping

This commit is contained in:
João Pedro Toledo Goncalves 2026-02-08 13:51:49 -03:00
parent 0317b5217a
commit 982423c3ff
2 changed files with 10 additions and 0 deletions

View File

@ -39,6 +39,9 @@ http {
geoip2 /usr/share/GeoIP/GeoLite2-City.mmdb { geoip2 /usr/share/GeoIP/GeoLite2-City.mmdb {
auto_reload 5m; auto_reload 5m;
$geoip2_data_city_name default=Unknown city names en; $geoip2_data_city_name default=Unknown city names en;
$geoip2_data_latitude location latitude;
$geoip2_data_longitude location longitude;
$geoip2_data_country_name country names en;
} }
# Performance # Performance

View File

@ -81,6 +81,13 @@ log_format detailed_proxy escape=json
'"security_score":"$security_score",' '"security_score":"$security_score",'
'"is_internal_ip":"$is_internal",' '"is_internal_ip":"$is_internal",'
# GeoIP Data (Re-enabled)
'"geoip_country_code":"$geoip2_data_country_code",'
'"geoip_country_name":"$geoip2_data_country_name",'
'"geoip_city_name":"$geoip2_data_city_name",'
'"geoip_latitude":$geoip2_data_latitude,'
'"geoip_longitude":$geoip2_data_longitude,'
# --- Pathfinder Extra Metadata (Seção Especial) --- # --- Pathfinder Extra Metadata (Seção Especial) ---
'"pathfinder_meta": {' '"pathfinder_meta": {'
'"request_uuid": "$request_id",' '"request_uuid": "$request_id",'