mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-29 03:16:22 -05:00
archive: raise archive service request limit to 500MB (#692)
Uploaded singlefiles are base64-encoded into JSON before being sent to the archive container, so an 88MB upload becomes a ~118MB request. Sanic's default REQUEST_MAX_SIZE of 100MB rejected it with a 413 before the handler ran, and the API surfaced this as KeyError: 'singlefile'. Only the Docker deployment is affected; Debian/RPi extract in-process. Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
b44a5f1941
commit
f1270b4e6c
1 changed files with 4 additions and 0 deletions
|
|
@ -76,8 +76,12 @@ if not BROWSER_EXEC.is_file():
|
|||
|
||||
# Increase response timeout, archiving can take several minutes.
|
||||
RESPONSE_TIMEOUT = 10 * 60
|
||||
# The API sends uploaded singlefiles base64-encoded in JSON (a 33% size increase). Sanic's default
|
||||
# 100MB limit rejects large uploads with a 413 before the handler runs.
|
||||
REQUEST_MAX_SIZE = 500 * 1024 * 1024
|
||||
config = {
|
||||
'RESPONSE_TIMEOUT': RESPONSE_TIMEOUT,
|
||||
'REQUEST_MAX_SIZE': REQUEST_MAX_SIZE,
|
||||
}
|
||||
|
||||
app = Sanic('archive')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue