server: increase max payload size to 16MB

Fixes #337
This commit is contained in:
Valentin Tolmer 2022-10-19 17:08:07 +02:00 committed by nitnelave
parent ee7dc39afa
commit ff66e918cf

View File

@ -90,6 +90,7 @@ where
.into() .into()
}); });
cfg.app_data(json_config); cfg.app_data(json_config);
cfg.app_data(web::PayloadConfig::new(1 << 24)); // Max payload size: 16MB, allows for a 12MB image.
cfg.service( cfg.service(
web::resource("/graphql") web::resource("/graphql")
.route(web::post().to(graphql_route::<Backend>)) .route(web::post().to(graphql_route::<Backend>))