feat: re-enable geoip logging and variable mapping
This commit is contained in:
parent
0317b5217a
commit
982423c3ff
|
|
@ -39,6 +39,9 @@ http {
|
|||
geoip2 /usr/share/GeoIP/GeoLite2-City.mmdb {
|
||||
auto_reload 5m;
|
||||
$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
|
||||
|
|
|
|||
|
|
@ -81,6 +81,13 @@ log_format detailed_proxy escape=json
|
|||
'"security_score":"$security_score",'
|
||||
'"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_meta": {'
|
||||
'"request_uuid": "$request_id",'
|
||||
|
|
|
|||
Loading…
Reference in New Issue