Expose GeoIP2 Continent code as variable (#8072)
This commit is contained in:
parent
1bd083276d
commit
a14edba8d5
1 changed files with 2 additions and 0 deletions
|
@ -181,6 +181,7 @@ http {
|
|||
geoip2 /etc/nginx/geoip/GeoLite2-Country.mmdb {
|
||||
$geoip2_country_code source=$remote_addr country iso_code;
|
||||
$geoip2_country_name source=$remote_addr country names en;
|
||||
$geoip2_continent_code source=$remote_addr continent code;
|
||||
$geoip2_continent_name source=$remote_addr continent names en;
|
||||
}
|
||||
{{ end }}
|
||||
|
@ -189,6 +190,7 @@ http {
|
|||
geoip2 /etc/nginx/geoip/GeoIP2-Country.mmdb {
|
||||
$geoip2_country_code source=$remote_addr country iso_code;
|
||||
$geoip2_country_name source=$remote_addr country names en;
|
||||
$geoip2_continent_code source=$remote_addr continent code;
|
||||
$geoip2_continent_name source=$remote_addr continent names en;
|
||||
}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue