Skip to content
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

Environment variable NGINX_MAX_UPLOAD is not working #214

Open
sujeetkv opened this issue Jan 21, 2021 · 2 comments
Open

Environment variable NGINX_MAX_UPLOAD is not working #214

sujeetkv opened this issue Jan 21, 2021 · 2 comments

Comments

@sujeetkv
Copy link

sujeetkv commented Jan 21, 2021

I have set ENV NGINX_MAX_UPLOAD 8m in my Dockerfile but it seems not working because I am not able to upload more than 1MB content. NGINX rejects request saying - Request Entity Too Large.

@r1n9w0rm
Copy link

I too have had this issue using Docker w/ AWS Elastic Beanstalk. This is what helped me - https://stackoverflow.com/a/61943622

@guysoft
Copy link

guysoft commented Aug 15, 2021

If you are sitting behind a reverse nginx-proxy you also need to take that in to account.
User the custom hostnames to create a file that contains:

client_max_body_size 1g;

More on how to put that here: https://github.com/nginx-proxy/nginx-proxy#per-virtual_host-location-configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants