Recently, there are two problems that need to be solved when using k8s clusters for business. Here are some records:
1M limit for uploading files on the front-end page
504 timeout occurs when the front-end page sends a POST request to the back-end
The main solution to the first problem: the default upload size of nginx is 1M, and the following content is added to the http, server, location area of the nginx configuration file:
The main solution to the second problem: the default timeout for reading the back-end in nginx is 1 minute, and the following content is added to the http, server, location area of the nginx configuration file: