-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Change default of max body size to 0 #98
Comments
What motivates this configuration change? The reason nginx defaults it so low is to remove possible DoS vectors iiuc, so I'd expect changing this default to require a bit more justification. |
Good point. In the last week I helped at least 5 user with upload issues with the ingress controller (slack) This is the list of issues I see with the current default:
I am not sure if this list justifies the change (most are just UX "issues") but the first impression of the users is not good. |
The default's only too low if you want to accept uploads, which certainly isn't everyone.
The log lines should be quite different. One of them, nginx reports an error itself, the other, nginx just reports a statuscode that it's proxying. If you do want to accept uploads, the right solution isn't to set the size to '0', but to some reasonable value for the expected content (e.g. image upload sites might pick 20M, file hosting sites might pick 100M). I don't think 0 is ever the correct value. I think we should improve the UX, and possibly increase the default by a small margin as a reasonable compromise perhaps. |
I'd like to see the ability to change the value per host/ingress. |
I think having this value configured using annotations on the ingress object might be a better solution. As you might need higher value for some services whereas for others you would prefer default 1m. |
@aledbf the PR #100 make the default unlimited for all ingress, I still think we need a mechanism in general to override default settings for ingress object using annotation on object. Settings such as max body size, session stickiness etc. does require overriding in certain cases from default. Any plan on supporting that. |
@gurvindersingh #148 allows custom body sizes using annotations |
Leaving current default of "1m". |
i have an admin feature where admin will be uploading files to s3 bucket. but upon heavy traffic ( backend deployed on elastic bean stalk ) new instances are being created and nginx client max body size is being omitted from nginx config. I tried available solution. .ebextensions , .platform config. but no luck. Can anybody help how to set upload size to 100mb permanaently. Is there any need to deploy my backend elsewhere, where nginx doesnt come into play. Thank you |
i.e. no upload limit
The text was updated successfully, but these errors were encountered: