diff --git a/.gitignore b/.gitignore index 1121a5a5d..a11241bba 100644 --- a/.gitignore +++ b/.gitignore @@ -36,7 +36,6 @@ npm-debug.log # we ignore priv/static. You may want to comment # this depending on your deployment strategy. /priv/static/ -/priv/geodb/ # Files matching config/*.secret.exs pattern contain sensitive # data and you should not commit them into version control. diff --git a/config/runtime.exs b/config/runtime.exs index 88e7239f5..c7afed65a 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -115,7 +115,7 @@ geolite2_country_db = get_var_from_path_or_env( config_dir, "GEOLITE2_COUNTRY_DB", - Application.app_dir(:plausible) <> "/priv/geodb/dbip-country.mmdb" + Application.app_dir(:plausible) <> "/priv/geodb/dbip-city-lite-2022-05.mmdb" ) ip_geolocation_db = get_var_from_path_or_env(config_dir, "IP_GEOLOCATION_DB", geolite2_country_db) diff --git a/priv/geodb/dbip-city-lite-2022-05.mmdb b/priv/geodb/dbip-city-lite-2022-05.mmdb new file mode 100644 index 000000000..b8b046feb Binary files /dev/null and b/priv/geodb/dbip-city-lite-2022-05.mmdb differ