Increase max payload size

This commit is contained in:
Ethan O'Brien
2024-06-01 09:24:14 -05:00
parent 23c09cd4d3
commit 07e3174065
3 changed files with 7 additions and 7 deletions

View File

@@ -187,11 +187,11 @@ async fn main() -> std::io::Result<()> {
println!("Request: {}", req.path());
srv.call(req)
})
.app_data(web::PayloadConfig::default().limit(1024 * 1024 * 25))
.service(css)
.service(js)
.default_service(web::route().to(request)))
.bind(("0.0.0.0", 8080))?
.run();
.default_service(web::route().to(request))
).bind(("0.0.0.0", 8080))?.run();
println!("Server started: http://127.0.0.1:{}", 8080);
rv.await
}