Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically update geoip database #242

Open
cmj2002 opened this issue Nov 7, 2022 · 2 comments
Open

Automatically update geoip database #242

cmj2002 opened this issue Nov 7, 2022 · 2 comments

Comments

@cmj2002
Copy link

cmj2002 commented Nov 7, 2022

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.

@milesmcc
Copy link
Owner

milesmcc commented Nov 7, 2022

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

@milesmcc
Copy link
Owner

milesmcc commented Nov 7, 2022

(And that's on me!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants