Replace MaxMind with CloudFlare headers (#4934)

* Replace MaxMind with CloudFlare headers

* Remove MaxMind env vars

* Fix test harness
This commit is contained in:
aecsocket
2025-12-30 16:49:49 +00:00
committed by GitHub
parent b07a1659b4
commit ad3edf541b
11 changed files with 16 additions and 30 deletions

View File

@@ -175,8 +175,6 @@ async fn main() -> std::io::Result<()> {
return Ok(());
}
let maxmind_reader = modrinth_maxmind::MaxMind::new().await;
let prometheus = PrometheusMetricsBuilder::new("labrinth")
.endpoint("/metrics")
.exclude_regex(r"^/api/v1/.*$")
@@ -205,7 +203,6 @@ async fn main() -> std::io::Result<()> {
search_config.clone(),
&mut clickhouse,
file_host.clone(),
maxmind_reader.clone(),
stripe_client,
anrok_client.clone(),
email_queue,