bump max body size

This commit is contained in:
Luna 2023-06-12 16:33:34 -03:00
parent 87e63cb770
commit ef64ba589b

View file

@ -36,7 +36,7 @@ async fn main() {
// build our application with a single route // build our application with a single route
let app = Router::new() let app = Router::new()
.route("/", post(upload_file)) .route("/", post(upload_file))
.layer(axum::extract::DefaultBodyLimit::max(300 * 1024 * 1024)); .layer(axum::extract::DefaultBodyLimit::max(512 * 1024 * 1024));
let upstream_runner = get_upstream_runner(); let upstream_runner = get_upstream_runner();