Recently, two recurring issues have arisen in our business operations using the Kubernetes cluster. Here’s a record of the solutions:
Frontend page file upload limited to 1M
POST requests from frontend to backend timing out with a 504 error
Solution for the first issue:
By default, Nginx limits upload size to 1M. To resolve this, add the following configuration in the http, server, or location blocks of the Nginx config:
Solution for the second issue:
By default, Nginx has a 1-minute timeout for reading responses from the backend. To extend this, add the following in the http, server, or location blocks: