Sign inSign up

ismv/nginx-proxy-manager

By ismv

Updated almost 4 years ago

Image
1

178

ismv/nginx-proxy-manager repository overview

Nginx Proxy Manager with GeoIP2 Modules

Usage

configuration
  • 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
}
  • And this to advanced configuration
if ($allowed_country = no) {
    return 418;
}

Tag summary

Content type

Image

Digest

sha256:41bf8bc98

Size

318.4 MB

Last updated

almost 4 years ago

docker pull ismv/nginx-proxy-manager