Geo-location not working in docker-compose-geoip

Things Done:

  1. Signup and created license in (https://www.maxmind.com/en/geolite2/signup).
  2. set up all the parameters in docker-compose-geoip.yml file to run the server.
  3. Checked the mounted volume for GeoLite2-Country.mmdb file (its there).
    Now every thing works except location. Data is not shown in dashboard. Need Help…

Hi, sorry for the long delay on my end.

Is unique visitor tracking working OK? It’s possible that Plausible is getting the IP address from a proxy, not from the remote client.

Hi @uku , my server host has a Nginx proxy at the front, and it proxy to the port 8000 which host the plausible container app like this

server {
      location / {
  client_max_body_size 0;
  proxy_pass http://127.0.0.1:8000;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header Host $http_host;
  proxy_set_header X-Forwarded-Proto $scheme;
  proxy_max_temp_file_size 0;
  proxy_redirect off;
  proxy_read_timeout 120;
}
}  

Does Plausible support the X-Real-IP ?

We don’t parse X-Real-IP but we do parse X-Forwarded-For which seems to be included in your config.

Ah I see, thanks the country map worked with the Nginx config I have!