-
-
Notifications
You must be signed in to change notification settings - Fork 653
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
Increase request entity limitation in nginx #356
Comments
Valid |
As far as I have tried, you will only need to change the nginx configuration and add the following value:
How to adjust nginx.conf globally on the Devilbox is described here: https://devilbox.readthedocs.io/en/latest/configuration-files/nginx-conf.html Let me know if this fixes your issue, so I can add this to the docs as a common issue. |
Would it be a problem to change that for everyone? I assume no body is using devilbox in production, having generous limits in a dev might reduce support requests? I'm fine with that change, it's not a big deal. |
I am with @Remo. We should increase it to 100M for everyone. |
However, there are some people who are trying to use this in production, or at least moving towards that direction. And I would advise against your development environment having higher limits than your production environment. Things might work in develoment and suddenly break when they go down the pipeline (hopefully in testing / qa rather than production but ....) Perhaps this size limit should be more prominently displayed in the documentation (maybe a footnote in the setup?) I'm not sure what the default value is, but perhaps a more reasonable default could be set with instructions on how to raise it for yourself. |
@science695 I agree with you but even in production, I set the "client_max_body_size " value higher than 8MB. How about setting it to a normal default value like 20-25 MB. |
20-25MB sounds very reasonable.
So, to state this explicitly: Can the default config file for nginx include:
|
Keep in mind that by setting a default of It can then only be overwritten on a per vhost base, but not in Also to be in sync with Apache, the current default settings are Nginx also seems to allow for unlimited size: http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size Once again, tradeoff will be, if it is set as a default, its more difficult to change it afterwards. And having a value of |
New HTTPD images@Remo @vikas5914 @science695 @serge22 For Nginx, I have now set
Additionally the
|
Devilbox PRI've create a PR: #520 Please try out and report back if it works as expected.
|
ISSUE TYPE
SUMMARY
I frequently get
413 Request Entity Too Large
when I'm trying to upload some files. The files aren't even that big, here's an example:Goal
It's an environment for development, can't imagine it would hurt to have a very generous limit. If I want to kill my own server so be it ;-)
The text was updated successfully, but these errors were encountered: