When uploading files through the nginx reverse proxy, it prompts "504 Gateway Time-out".
Solution#
Since I generated the configuration through nginxconfig.io, I only need to modify the default three parameters without adding any new parameters:
proxy_connect_timeout 240s;
proxy_send_timeout 240s;
proxy_read_timeout 240s;
Alternatively, you can also configure the timeout for four parameters completely according to stackoverflow:
proxy_connect_timeout 240;
proxy_send_timeout 240;
proxy_read_timeout 240;
send_timeout 240;