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

Commit

Permalink
Increase req body limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Geometrically committed Jan 17, 2024
1 parent 0b473c1 commit b94df35
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 b94df35

Please sign in to comment.