From 635b0717931df907ee8015a42ad0ed1fcdf967c4 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 23 Sep 2013 07:47:40 +0200 Subject: Implement rangeDownload() as driver and provide sendfile implementations for Nginx and Lighttpd * The rangeDownload() function has been moved to libraries/Ddownload/drivers/Ddownload_php.php * The nginx and lighttpd drivers can be set via $config['download_driver'] Signed-off-by: Pierre Schmitz --- application/config/config.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'application/config') diff --git a/application/config/config.php b/application/config/config.php index 5d6ea5d1f..54870b37b 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -416,6 +416,22 @@ $config['auth_fluxbb'] = array( // possible values: production, development $config['environment'] = "production"; +// This sets the download implementation. Possible values are php, nginx and lighttpd +// The nginx and lighttpd drivers make use of the server's sendfile feature. +$config['download_driver'] = 'php'; +// The lighttpd driver requires the following directive to be set in your fastcgi.server configuration: +// "allow-x-send-file" => "enable" +// See http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModFastCGI#X-Sendfile +// +// When using the nginx download driver you need to define an internal location +// from which nginx will serve your uploads: +// location ^~ /protected-uploads/ { +// internal; +// alias /; +// } +// See http://wiki.nginx.org/X-accel +$config['download_nginx_location'] = '/protected-uploads'; + if (file_exists(FCPATH.'application/config/config-local.php')) { include FCPATH.'application/config/config-local.php'; } -- cgit v1.2.3-24-g4f1b