geoip_country /usr/share/GeoIP/GeoIP.dat; map $geoip_country_code $allow_visit { default no; US yes; JP yes; CA yes; }Add the following inside your server block
if ($allow_visit = no) { return 500; }
geoip_country /usr/share/GeoIP/GeoIP.dat; map $geoip_country_code $allow_visit { default no; US yes; JP yes; CA yes; }Add the following inside your server block
if ($allow_visit = no) { return 500; }