allow max payload size override

This commit is contained in:
marinpostma
2020-05-14 17:52:10 +02:00
committed by mpostma
parent e40d9e7462
commit 5193382b07
3 changed files with 9 additions and 1 deletions

View File

@ -34,4 +34,8 @@ pub struct Opt {
/// The maximum size, in bytes, of the update lmdb database directory
#[structopt(long, env = "MEILI_UPDATE_MAP_SIZE", default_value = "107374182400")] // 100GB
pub update_map_size: usize,
/// The maximum size, in bytes, of accepted JSON payloads
#[structopt(long, env = "MEILI_HTTP_PAYLOAD_SIZE_LIMIT", default_value = "10485760")] // 10MB
pub http_payload_size_limit: usize,
}