-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
nextcloud:fpm Request Entity Too Large #95
Comments
Seems like your proxy setting was fine, but the error is in the image: #97 |
Using docker-compose there should be some way to overwrite the conf files but trying nearly everything I am still unable to make it work. Does anyone have a hint? |
Seems like the error is coming from the nginx proxy. Please try to add
to the end of proxy/vhost.d/default Restart the proxy and try to upload a > 2MB file. |
I have the same issue. It works if I add the client_max_body_size 1G; to proxy/vhost.d/default. But this file is eresased/templated if I restart the letsencrypt-companion container. Don't know where I can put some extra config for it nginx or letsencrypt container. |
Hmm, this is strange. |
did you restart your letsencrypt-companion container? Restarting it in my case always overwritte the default file
|
I had the same issue and resolved it via creating a |
Thx @pr4xx that's almost what I did after reading the nginx docker documentation :) |
@l00ptr You have to add the line from @bang-uin after the last comment about
|
You don't have to edit the
I usally do this by mounting the extra file in docker-compose:
|
Thank you very much dud |
I am running a docker-compose setup using nextcloud:fpm, nginx, nginx-proxy and docker-letsencrypt-nginx-proxy-companion (based on the example in .example, but without a non-sqlite db, redis or collabora). This works for the most part, however I cannot upload files larger than 2MB. According to #32 docker-letsencrypt-nginx-proxy-companion can cause this, but adding a
client_max_body_size
setting to the default or VIRTUAL_HOST-specific vhost.d files has no effect.Could this be caused by the fast_cgi in the fpm module? I tried adding
fastcgi_param PHP_VALUE "upload_max_filesize = 4000M \n post_max_size=4000M";
to the server config but this doesn't appear to have any effect either.The text was updated successfully, but these errors were encountered: