better body size limit configuration
This commit is contained in:
parent
f78333c24c
commit
9392714f7f
@ -33,7 +33,7 @@ You can change configuration using this environment variables:
|
|||||||
- `NUM_WORKERS` - can be used to change how many threads will be used to transcode incoming files. Default is equal to logical CPUs.
|
- `NUM_WORKERS` - can be used to change how many threads will be used to transcode incoming files. Default is equal to logical CPUs.
|
||||||
- `TEMP_DIR` - this can be used to change which directory should be used to store incoming downloads and transcoding results. Useful if you want to use a Docker volume for this. Default is system temp directory (`/tmp` for Linux).
|
- `TEMP_DIR` - this can be used to change which directory should be used to store incoming downloads and transcoding results. Useful if you want to use a Docker volume for this. Default is system temp directory (`/tmp` for Linux).
|
||||||
- `LOG_LEVEL` - changes log verbosity, default is `info`.
|
- `LOG_LEVEL` - changes log verbosity, default is `info`.
|
||||||
- `MAX_BODY_SIZE` - changes max body size for `/enqueue`. Default is 100MB.
|
- `MAX_BODY_SIZE` - changes max body size for `/enqueue`. Default is 100MB, maximum is 1GiB (which is still *a lot* for the multipart form).
|
||||||
- `RESULT_TTL_SEC` - sets result ttl in seconds, minimum 60 seconds. Default is 3600 (transcoding results are being kept and can be downloaded for an hour).
|
- `RESULT_TTL_SEC` - sets result ttl in seconds, minimum 60 seconds. Default is 3600 (transcoding results are being kept and can be downloaded for an hour).
|
||||||
- `FFMPEG_VERBOSE` - if set to `1` changes FFmpeg log level from quiet to trace.
|
- `FFMPEG_VERBOSE` - if set to `1` changes FFmpeg log level from quiet to trace.
|
||||||
|
|
||||||
|
@ -20,6 +20,6 @@ pub struct ConvertRequest {
|
|||||||
pub channel_layout: String,
|
pub channel_layout: String,
|
||||||
pub callback_url: String,
|
pub callback_url: String,
|
||||||
|
|
||||||
#[form_data(limit = "25MiB")]
|
#[form_data(limit = "1GiB")]
|
||||||
pub file: FieldData<NamedTempFile>,
|
pub file: FieldData<NamedTempFile>,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user