From b1c9f3ea8ad07d28bba6f52b2afe2b5a4eb30792 Mon Sep 17 00:00:00 2001 From: JimboJoe Date: Thu, 29 Dec 2016 22:08:02 +0100 Subject: [PATCH 1/2] Extend client body timeout for very large files As advised on Jirafeau website: https://gitlab.com/mojo42/Jirafeau#my-downloads-are-incomplete-or-my-uploads-fails (client_header_timeout can't be set at this configuration level) --- conf/nginx.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index dce949e..a3fcded 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -4,6 +4,7 @@ location YNH_WWW_LOCATION { rewrite ^ https://$server_name$request_uri? permanent; } client_max_body_size 10G; + client_body_timeout 30m; index index.php; try_files $uri $uri/ index.php; From 76044595941450602d1494e9154784db7e0407b3 Mon Sep 17 00:00:00 2001 From: JimboJoe Date: Sun, 1 Jan 2017 09:27:13 +0100 Subject: [PATCH 2/2] Extend proxy_read_timeout Extending client_body_timeout wasn't enough for a file > 5Gb. I had to set proxy_read_timeout as advised here: http://howtounix.info/howto/110-connection-timed-out-error-in-nginx --- conf/nginx.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index a3fcded..7e1118b 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -5,6 +5,7 @@ location YNH_WWW_LOCATION { } client_max_body_size 10G; client_body_timeout 30m; + proxy_read_timeout 30m; index index.php; try_files $uri $uri/ index.php;