summaryrefslogtreecommitdiffstats
path: root/application/config
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2013-09-23 07:47:40 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-09-23 18:07:47 +0200
commit635b0717931df907ee8015a42ad0ed1fcdf967c4 (patch)
treed301376b6dfc5326a7c2190c99194475ff7bc016 /application/config
parent551c359d8e50608093ba0f7179bd311d89e90da2 (diff)
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 <pierre@archlinux.de>
Diffstat (limited to 'application/config')
-rw-r--r--application/config/config.php16
1 files changed, 16 insertions, 0 deletions
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 <upload_path>/;
+// }
+// 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';
}