Increase request timeout to 600 seconds

This commit is contained in:
Ethan Paul 2024-04-29 16:31:42 -04:00
parent df55484e5a
commit c24bbb4cf6
Signed by: enpaul
GPG Key ID: 9B6D99E4CFA31867
2 changed files with 9 additions and 4 deletions

View File

@ -71,10 +71,10 @@ http {
# and include that list explicitly or add the file extension # and include that list explicitly or add the file extension
# only for Nextcloud like below: # only for Nextcloud like below:
include mime.types; include mime.types;
#types { types {
# text/javascript js mjs; text/javascript js mjs;
# application/wasm wasm; application/wasm wasm;
#} }
# Specify how to handle directories -- specifying `/index.php$request_uri` # Specify how to handle directories -- specifying `/index.php$request_uri`
# here as the fallback means that Nginx always exhibits the desired behaviour # here as the fallback means that Nginx always exhibits the desired behaviour
@ -154,6 +154,7 @@ http {
fastcgi_request_buffering off; fastcgi_request_buffering off;
fastcgi_max_temp_file_size 0; fastcgi_max_temp_file_size 0;
fastcgi_read_timeout 600;
} }
# Serve static files # Serve static files

View File

@ -854,6 +854,10 @@ file_uploads = On
; https://php.net/upload-max-filesize ; https://php.net/upload-max-filesize
upload_max_filesize = 10G upload_max_filesize = 10G
; Max timeout for the server
; https://help.nextcloud.com/t/504-gateway-timeout-for-large-file-uploads/87839
request_terminate_timeout = 600
; Maximum number of files that can be uploaded via a single request ; Maximum number of files that can be uploaded via a single request
max_file_uploads = 20 max_file_uploads = 20