Updated README
This commit is contained in:
parent
d0adfced46
commit
d4314bb82e
1 changed files with 14 additions and 0 deletions
14
README.md
14
README.md
|
@ -2,3 +2,17 @@ Description
|
||||||
===========
|
===========
|
||||||
|
|
||||||
**ngx_http_geoip2_module** - creates variables with values from the maxmind geoip2 databases based on the client IP (supports both IPv4 and IPv6)
|
**ngx_http_geoip2_module** - creates variables with values from the maxmind geoip2 databases based on the client IP (supports both IPv4 and IPv6)
|
||||||
|
|
||||||
|
## Example Usage:
|
||||||
|
```
|
||||||
|
http {
|
||||||
|
...
|
||||||
|
geoip2_mmdb /etc/maxmind-city.mmdb;
|
||||||
|
geoip2_data $geoip2_data_country_code country iso_code;
|
||||||
|
geoip2_data $geoip2_data_country_name country names en;
|
||||||
|
geoip2_data $geoip2_data_city_name city names en;
|
||||||
|
geoip2_data $geoip2_data_geoname_id country geoname_id;
|
||||||
|
geoip2_data $geoip2_data_latitude location latitude;
|
||||||
|
....
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue