From 430c1aeac63000a9f9725606184081957504de82 Mon Sep 17 00:00:00 2001 From: spleeeem Date: Wed, 18 May 2016 17:58:39 +0200 Subject: [PATCH 1/2] Download limits on Nginx frontends Nginx frontend proxy servers by default limit the download size to 1 GB because of the default values of proxy_buffering and proxy_max_temp_file_size. These need to be either disabled via headers on the backend or the configuration on the frontend. --- .../configuration_files/big_file_upload_configuration.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/admin_manual/configuration_files/big_file_upload_configuration.rst b/admin_manual/configuration_files/big_file_upload_configuration.rst index 53168a390..ba9f13e74 100644 --- a/admin_manual/configuration_files/big_file_upload_configuration.rst +++ b/admin_manual/configuration_files/big_file_upload_configuration.rst @@ -90,6 +90,13 @@ wiki entry. the ``upload_tmp_dir`` or ``tempdirectory`` (see below). For optimal performance, place these on a separate hard drive that is dedicated to swap and temp storage. + +In case your site is behind a Nginx frontend (for example a loadbalancer): + +By default, downloads will be limited to 1GB due to ``proxy_buffering`` and ``proxy_max_temp_file_size`` on the frontend. + +* If you can access the frontend's configuration, disable `proxy_buffering `_ or increase `proxy_max_temp_file_size `_ from the default 1GB. +* If you do not have have access to the frontend, set the `X-Accel-Buffering `_ header to ``add_header X-Accel-Buffering no;`` on your backend server. Configuring PHP --------------- From 3288fe88a0574a7c35799eb1a0f13885212587c8 Mon Sep 17 00:00:00 2001 From: spleeeem Date: Thu, 19 May 2016 01:22:02 +0200 Subject: [PATCH 2/2] Update big_file_upload_configuration.rst --- .../configuration_files/big_file_upload_configuration.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin_manual/configuration_files/big_file_upload_configuration.rst b/admin_manual/configuration_files/big_file_upload_configuration.rst index ba9f13e74..34149731b 100644 --- a/admin_manual/configuration_files/big_file_upload_configuration.rst +++ b/admin_manual/configuration_files/big_file_upload_configuration.rst @@ -91,12 +91,12 @@ wiki entry. performance, place these on a separate hard drive that is dedicated to swap and temp storage. -In case your site is behind a Nginx frontend (for example a loadbalancer): +If your site is behind a Nginx frontend (for example a loadbalancer): By default, downloads will be limited to 1GB due to ``proxy_buffering`` and ``proxy_max_temp_file_size`` on the frontend. * If you can access the frontend's configuration, disable `proxy_buffering `_ or increase `proxy_max_temp_file_size `_ from the default 1GB. -* If you do not have have access to the frontend, set the `X-Accel-Buffering `_ header to ``add_header X-Accel-Buffering no;`` on your backend server. +* If you do not have access to the frontend, set the `X-Accel-Buffering `_ header to ``add_header X-Accel-Buffering no;`` on your backend server. Configuring PHP ---------------