shynet icon indicating copy to clipboard operation
shynet copied to clipboard

Automatically update geoip database

Open cmj2002 opened this issue 3 years ago • 2 comments

Currently, the geoip database is only updated when there is a new release, but outdated geoip data will lead to some mistakes in identifying countries, especially when there is no new release for a long time.

Maybe we can provide an environment variable to use the user's maxmind license_key to automatically update the geoip library on a regular basis? For users who do not care about the accuracy of the country, they can use the database in the docker by setting the environment variable to empty string.

If this is difficult to implement, you can also schedule a cronjob on the host which use docker exec to update it. This is what I do now. This requires additionally installing curl in the container.

cmj2002 avatar Nov 07 '22 13:11 cmj2002

Yeah we could definitely do something like this, though tbh I think the better solution is honestly to just release more frequently.

milesmcc avatar Nov 07 '22 16:11 milesmcc

(And that's on me!)

milesmcc avatar Nov 07 '22 16:11 milesmcc