-
Notifications
You must be signed in to change notification settings - Fork 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
Allow to set the value for client_max_body_size #29
Comments
This issue is no more urgent as I did an implementation in my fork : https://github.com/zedtux/nginx-proxy. It's fine for me until you implement a cleaner solution. |
can we merge this? |
Well as I did it working as I can, I'm not sure it will be accepted. A cleaner way would be surely required. |
I don't think there is an open PR to actually merge anything ATM but the reason it's not in the current template is that it can open up a DoS vulnerability if the limit is set too high and applies to too many endpoints. There are some other settings things that should be adjusted if this is increased as well. I'm looking at ways to support though. |
I've successfully increased this setting by dropping my own conf file into |
@jwilder what you're explaining is true with or without Docker right ? So if someone set something wrong, it is definitively wrong and you can't avoid it. @md5 the point is about to be able to define it per container, meaning by passing an argument. You can have a look to my fork if you want to see an example. |
@zedtux Yes, it's more about nginx config. I'd like to get something in place that would make it hard to do the wrong thing for most users but not prevent anyone from really customizing things if they need to. Usually you only need a large body size for a small number of endpoints on a host and not all of them. |
Weird thought; perhaps the same approach as the TLS; have a directory that contains templates for a specific virtual host. If a template is found for a matching virtual host, include it and update it with the right ip-addresses? |
@thaJeztah That's an interesting idea. |
My first thought was to use There's also |
can we merge this? I tested out jperville's template change and it appears to work for what I need with owncloud. |
merge this. please |
@StormBP I can't speak for @jwilder, but I don't think that https://github.com/zedtux/nginx-proxy is in a state to be merged. It has a bunch of duplicative but incompatible changes along with changes that could be done in other ways. In terms of setting The other case that people seem to want is the ability to set
Update: The |
Yeah, @md5 summed up my thoughts as well. I don't think adding another env var for this feature is the right way to go. I think supporting custom templates per vhost would be much more extensible. |
I agree with @md5. What I'm doing in my fork is just dirty but working stuff for my personal use. Implementing those idea in the perfect way is the responsibility of this upstream repository in my opinion, meaning when done my fork is no more needed. |
I'm trying to make ownCloud working and everything work great until I try to upload a file of more than 3 Mb.
It seems that the instruction
client_max_body_size
is missing.It would be nice to add another variable to manipulate the
client_max_body_size
value.The text was updated successfully, but these errors were encountered: