Mount directory with GeoLite2-Country.mmdb to /geoip
Insert this to /data/nginx/custom/http_top.conf server block:
geoip2 /geoip/GeoLite2-Country.mmdb {
$geoip2_data_country_iso_code country iso_code;
}
map $geoip2_data_country_iso_code $allowed_country {
default no;
FR yes; # France
BE yes; # Belgium
DE yes; # Germany
CH yes; # Switzerland
}
if ($allowed_country = no) {
return 418;
}
Content type
Image
Digest
sha256:41bf8bc98…
Size
318.4 MB
Last updated
almost 4 years ago
docker pull ismv/nginx-proxy-manager