Skip to content

Commit

Permalink
Expose GeoIP2 Continent code as variable (#8072)
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrapolic authored Dec 30, 2021
1 parent 1bd0832 commit a14edba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rootfs/etc/nginx/template/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down

0 comments on commit a14edba

Please sign in to comment.