简体   繁体   中英

Ingress nginx: 413 Request Entity Too Large

I use ingress-nginx with Helm Chart. I used to have the problem, that when I would upload a file ZIP (400MB) that I would get the error 413 Request Entity Too Large nginx.

So I changed the proxy-body-size value in my values.yaml file to 800m

values:

ingress:
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/proxy-body-size: 800m

but it's not working. I try to upload file image 10MB, It's still well working.

How can I fix it?

Thank for your support.

The annotation nginx.ingress.kubernetes.io/proxy-body-size is not longer being applied and the correct one would be:

annotations:

nginx.org/client-max-body-size: "800m"

Refer to this link and Stack post for more information.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM