Request entity too large error on Kubernetes environment only
Nginx supports changing the max body size. If you're using a Kubernetes Ingress object you can do so in the following way:
apiVersion: networking.k8s.io/v1beta1kind: Ingressmetadata: name: myapp namespace: default annotations: kubernetes.io/ingress.class: "nginx" cert-manager.io/cluster-issuer: "letsencrypt-prod" nginx.ingress.kubernetes.io/proxy-body-size: 512m # Max body size for ingress.spec: tls: - hosts: - "somehost.com" secretName: somehost-tls rules: - host: somehost.com http: paths: - path: / backend: serviceName: myapp servicePort: 80
I don't know how you're running Nginx. It may be that you're running it in a non-ingress way. For that you can edit the Nginx config: Default nginx client_max_body_size