kutt icon indicating copy to clipboard operation
kutt copied to clipboard

No Data for all Country's in Self hosted instance.

Open mrghxst opened this issue 3 years ago • 1 comments

I was wondering if I have to set the MaxMind API Key or somethig to enable Geo tracking because I dont get any locations in my selfhosted instance. And every other tracking works. Also in MaxMind Demo all my IP's give Country accurate data.

mrghxst avatar Dec 22 '21 18:12 mrghxst

No, no key is needed, all the data is offline (https://www.npmjs.com/package/geoip-lite). The problem could be that IP address is not properly passed to the Node.js app. For example if you're using NGINX, I suggest you to look how to properly proxy IP address. You can check out Kutt.it's NGINX config to see how it's done. It's the proxy_set_header X-Real-IP $remote_addr; line.

poeti8 avatar Dec 26 '21 13:12 poeti8