diff --git a/Rocket.toml b/Rocket.toml index 66835e0f..9467223c 100644 --- a/Rocket.toml +++ b/Rocket.toml @@ -11,7 +11,10 @@ # profile. [global.limits] -form = "12 MiB" +# See https://api.rocket.rs/master/rocket/data/struct.Limits#built-in-limits +form = "1 MiB" +data-form = "10 MiB" +json = "10 MiB" [debug] secret_key = "eXqSA0wz+qLlg8umREPesnkBzNlhwaNcp34BttIWLes=" diff --git a/src/main.rs b/src/main.rs index 7e73bfd7..7557af86 100644 --- a/src/main.rs +++ b/src/main.rs @@ -27,6 +27,8 @@ use rocket::{catch, catchers, get, request::Request, routes}; use serde::Deserialize; // Limits +// +// Note: Other limits are configured in Rocket.toml! pub const MAX_IGC_UPLOAD_BYTES: u64 = 50 * 1024 * 1024; pub const MAX_CSV_UPLOAD_BYTES: u64 = 10 * 1024 * 1024;