From 811b4c0e67f1dfe7c10a7e6a4e3c9001466c6658 Mon Sep 17 00:00:00 2001 From: GilbN <24592972+gilbN@users.noreply.github.com> Date: Tue, 29 Dec 2020 20:02:32 +0100 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 439c7db..e20d01d 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,7 @@ Nginx needs to be compiled with the geoip2 module: https://github.com/leev/ngx_h ```nginx geoip2 /config/geoip2db/GeoLite2-City.mmdb { auto_reload 5m; -$geoip2_data_country_code country iso_code; +$geoip2_data_country_iso_code country iso_code; $geoip2_data_city_name city names en; } @@ -117,7 +117,7 @@ log_format custom '$remote_addr - $remote_user [$time_local]' '"$request" $status $body_bytes_sent' '"$http_referer" $host "$http_user_agent"' '"$request_time" "$upstream_connect_time"' - '"$geoip2_data_city_name" "$geoip2_data_country_code"'; + '"$geoip2_data_city_name" "$geoip2_data_country_iso_code"'; ``` 2. Set the access log use the `custom` log format.