Fix HTTP 413 (redux): BODY_SIZE_LIMIT="Infinity", not "0"
The adapter treats "0" as "block anything > 0 bytes" rather than "unlimited" — SvelteKit's own error message says: "To disable body size limits, specify Infinity rather than 0." Previous commit set "0", which kept the 413 in place.
This commit is contained in:
+6
-3
@@ -20,9 +20,12 @@ services:
|
|||||||
# SvelteKit's Node adapter caps request bodies at 512KB by default,
|
# SvelteKit's Node adapter caps request bodies at 512KB by default,
|
||||||
# which rejects real-world plugin .dll uploads with HTTP 413. Same
|
# which rejects real-world plugin .dll uploads with HTTP 413. Same
|
||||||
# trust boundary as the CSRF disable (see svelte.config.js) — this is
|
# trust boundary as the CSRF disable (see svelte.config.js) — this is
|
||||||
# LAN-only, so 0 = unlimited is fine. If exposed to the public
|
# LAN-only, so "Infinity" (no cap) is fine. NOTE: "0" does NOT mean
|
||||||
# internet, replace with a concrete byte cap instead.
|
# unlimited in this adapter — it blocks anything > 0 bytes. SvelteKit's
|
||||||
BODY_SIZE_LIMIT: "0"
|
# own error message calls this out: "To disable body size limits,
|
||||||
|
# specify Infinity rather than 0." If exposed to the public internet,
|
||||||
|
# replace with a concrete byte cap (e.g. "128M") instead.
|
||||||
|
BODY_SIZE_LIMIT: "Infinity"
|
||||||
SERVERS_ROOT: /root/zombies/t5
|
SERVERS_ROOT: /root/zombies/t5
|
||||||
REL_DEST: runtime/plutonium/storage/t5/raw/scripts/sp
|
REL_DEST: runtime/plutonium/storage/t5/raw/scripts/sp
|
||||||
BETA_ARCHIVE_DIR: /root/zombies/beta-archive
|
BETA_ARCHIVE_DIR: /root/zombies/beta-archive
|
||||||
|
|||||||
Reference in New Issue
Block a user