Skip to content

Commit

Permalink
Rise upload limit to 1mb
Browse files Browse the repository at this point in the history
  • Loading branch information
myOmikron committed Apr 27, 2023
1 parent 123709d commit 8fa4a55
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,12 @@ pub async fn start_server(

HttpServer::new(move || {
App::new()
.app_data(PayloadConfig::default())
.app_data(JsonConfig::default().error_handler(json_extractor_error))
.app_data(PayloadConfig::default().limit(1_000_000))
.app_data(
JsonConfig::default()
.limit(1_000_000)
.error_handler(json_extractor_error),
)
.app_data(Data::new(runtime_settings.clone()))
.app_data(Data::new(db.clone()))
.app_data(Data::new(ws_manager_chan.clone()))
Expand Down

0 comments on commit 8fa4a55

Please sign in to comment.