macbre / docker-nginx-http3

Stable and up-to-date root-less nginx with quic + http/3, google brotli compression, njs, GeoIP2, and Grade A+ SSL config
https://hub.docker.com/r/macbre/nginx-http3
161 stars 53 forks source link

GeoIP2 not working - libmaxminddb missing #71

Closed Y0ngg4n closed 2 years ago

Y0ngg4n commented 2 years ago

When loading the GeoIP2 Module in Nginx config i get:

nginx: [emerg] dlopen() "/usr/lib/nginx/modules/ngx_http_geoip2_module.so" failed (Error loading shared library libmaxminddb.so.0: No such file or directory (needed by /usr/lib/nginx/modules/ngx_http_geoip2_module.so)) in /etc/nginx/nginx.conf:2
nginx: [emerg] dlopen() "/usr/lib/nginx/modules/ngx_http_geoip2_module.so" failed (Error loading shared library libmaxminddb.so.0: No such file or directory (needed by /usr/lib/nginx/modules/ngx_http_geoip2_module.so)) in /etc/nginx/nginx.conf:2

@macbre

macbre commented 2 years ago

Add:

load_module modules/ngx_http_geoip2_module.so;

Let's try to install libmaxminddb Alpine package.