diff --git a/crates/edgen_server/src/lib.rs b/crates/edgen_server/src/lib.rs index 88b057f..1ad53e3 100644 --- a/crates/edgen_server/src/lib.rs +++ b/crates/edgen_server/src/lib.rs @@ -15,6 +15,7 @@ #![deny(unsafe_code)] #![warn(missing_docs)] +use axum::extract::DefaultBodyLimit; use core::future::IntoFuture; use std::process::exit; use std::sync::atomic::{AtomicBool, Ordering}; @@ -190,7 +191,9 @@ async fn run_server(args: &cli::Serve) -> Result { ) .await; - let http_app = routes::routes().layer(CorsLayer::permissive()); + let http_app = routes::routes() + .layer(CorsLayer::permissive()) + .layer(DefaultBodyLimit::max(1024 * 1024 * 1024)); let uri_vector = if !args.uri.is_empty() { info!("Overriding default URI");