[VUE] The project setting timeout is 6 minutes, but the actual timeout is 1 minute.

1. Background: In the VUE project, the front-end interface requested to set 6 minutes, but it actually timed out in 1 minute in the browser.
timeout: 6 * 60 * 1000
2. After investigation: It is not a problem with the front-end code settings, nor a problem with the browser, but the nginx timeout setting defaults to 60S, causing the interface to report 504 Gateway Timeout after 1 minute.
3. The solution is as follows:

Insert image description here
Insert image description here

Reference: tomcat nginx 504 Gateway Time-out method

Guess you like

Origin blog.csdn.net/sunshineTing2/article/details/131590365