Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Merge branch 'axum' of http://www.github.com/modrinth/labrinth into axum
Browse files Browse the repository at this point in the history
  • Loading branch information
thesuzerain committed Jan 17, 2024
2 parents bd5a573 + b94df35 commit 85e41e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use axum::routing::any;
use axum::{Extension, Router};
use std::sync::Arc;
use axum::extract::DefaultBodyLimit;

use database::redis::RedisPool;
use queue::{
Expand Down Expand Up @@ -258,6 +259,7 @@ pub fn app_config(labrinth_config: LabrinthConfig) -> Router {
.layer(Extension(labrinth_config.clickhouse.clone()))
.layer(Extension(labrinth_config.maxmind.clone()))
.layer(Extension(labrinth_config.active_sockets.clone()))
.layer(DefaultBodyLimit::max(5 * 1024))
}

// This is so that env vars not used immediately don't panic at runtime
Expand Down

0 comments on commit 85e41e0

Please sign in to comment.