feat: make max request size configurable - #14
Merged
TorstenDittmann merged 3 commits intoSep 14, 2026
Merged
Conversation
Expose the previously hardcoded 10 MiB /analyze body limit as MAX_REQUEST_SIZE so operators can raise or lower it without rebuilding. Co-authored-by: Torsten Dittmann <TorstenDittmann@users.noreply.github.com>
AutogravityProject ID: Tip Schedule functions to run as often as every minute with cron expressions |
TorstenDittmann
marked this pull request as ready for review
September 14, 2026 19:17
|
Read the limit from the environment when constructing the app, and replace helper-level parser and formatter assertions with request-status checks. Co-authored-by: Torsten Dittmann <TorstenDittmann@users.noreply.github.com>
Untyped default assignment inferred int and broke the constructor. Co-authored-by: Torsten Dittmann <TorstenDittmann@users.noreply.github.com>
TorstenDittmann
deleted the
torsten/configurable-max-request-size-00e3
branch
September 14, 2026 19:32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The
/analyzebody limit was hardcoded at 10 MiB. It is now set withMAX_REQUEST_SIZEso operators can raise or lower it without rebuilding.Default:
10MiB(10485760 bytes), including multipart overhead.Examples:
Accepted values are a positive integer (bytes) or a size with a
KiB/MiB/GiBorKB/MB/GBsuffix. Oversized requests still return 413, with the configured limit in the error message.Decoded-image megapixel limits are unchanged.