skip to Main Content

Nginx geoip does not show the country in the logs – Docker

I am using a public repo for nginx configured for geolocation with geoip, but I am getting dashes in the fields $geoip2_data_country_code $geoip2_data_country_name'. I have the following Dockerfile: FROM alpine:3.11 COPY GeoLite2-Country.mmdb /usr/share/geoip/ # Install libmaxminddb and ngx_http_geoip2_module ENV MAXMIND_VERSION=1.2.1…

VIEW QUESTION

geoip_country_name returns "-" in nginx

I am trying to install geoip module for nginx though dockerfile by adding to my dockerfile the following: RUN apk add --no-cache libmaxminddb nginx-mod-http-geoip RUN cd /var/lib; mkdir -p nginx; wget -q -O- https://dl.miyuru.lk/geoip/maxmind/country/maxmind.dat.gz | gunzip -c > nginx/maxmind-country.dat; wget…

VIEW QUESTION

add Nginx 1.20.1 GeoIP2 module

I'm trying to configure nginx to build the GeoIP2 module, by following this installation: https://github.com/leev/ngx_http_geoip2_module first I still didn't understand what is defrences between static and dynamic modules, and why can't I just apt install that module.. The problemm is…

VIEW QUESTION
Back To Top
Search