Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add ability to tweak Unit variations max body size setting #416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

RyanTheAllmighty
Copy link
Contributor

Currently the Unit variation doesn't allow customising the max_body_size setting (https://unit.nginx.org/configuration/#settings:~:text=false%20(disabled).-,max_body_size,-Maximum%20number%20of), which by default only allows 8MB requests to be processed by Nginx Unit.

This PR adds the ability to specify UNIT_MAX_BODY_SIZE environment variable (with a default of 100MB to match PHPs max size).

I've tested this by tweaking the json templates locally and then applying them to my own Docker image and this fixes the issue I was seeing with 413 errors when post sizes were above 8MB.

@jaydrogers jaydrogers changed the base branch from main to release/v3.4 September 27, 2024 20:41
@jaydrogers
Copy link
Member

Thanks a ton for submitting this!

This will be added in the v3.4 release 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.