Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Package new db-ip library in the git repo

Uku Taht18e271155620
diff --git a/.gitignore b/.gitignore
index 1121a5a5d5..a11241bbab 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 88e7239f5f..c7afed65af 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 0000000000..b8b046feb5
Binary files /dev/null and b/priv/geodb/dbip-city-lite-2022-05.mmdb differ