From 551a6b1984c97e66e14398e9e75bc56ebc8e0bf9 Mon Sep 17 00:00:00 2001 From: Ethan Paul Date: Mon, 29 Apr 2024 16:31:42 -0400 Subject: [PATCH] !LOCAL Increase request timeout to 600 seconds --- nginx/nginx.conf.template | 9 +++++---- php-fpm/php.ini-production | 4 ++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/nginx/nginx.conf.template b/nginx/nginx.conf.template index 49eea01..ed0d0ba 100644 --- a/nginx/nginx.conf.template +++ b/nginx/nginx.conf.template @@ -71,10 +71,10 @@ http { # and include that list explicitly or add the file extension # only for Nextcloud like below: include mime.types; - #types { - # text/javascript js mjs; - # application/wasm wasm; - #} + types { + text/javascript js mjs; + application/wasm wasm; + } # Specify how to handle directories -- specifying `/index.php$request_uri` # here as the fallback means that Nginx always exhibits the desired behaviour @@ -154,6 +154,7 @@ http { fastcgi_request_buffering off; fastcgi_max_temp_file_size 0; + fastcgi_read_timeout 600; } # Serve static files diff --git a/php-fpm/php.ini-production b/php-fpm/php.ini-production index 9ed334e..9087aad 100644 --- a/php-fpm/php.ini-production +++ b/php-fpm/php.ini-production @@ -854,6 +854,10 @@ file_uploads = On ; https://php.net/upload-max-filesize 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 max_file_uploads = 20