From 2f374d188317a30ed51df9647ec1bdc0f36313de Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 22 Sep 2013 09:21:00 +0200 Subject: Add FluxBB authentication driver To enable set: $config['authentication_driver'] = 'fluxbb'; $config['auth_fluxbb'] = array('database' => 'fluxbb'); Signed-off-by: Pierre Schmitz Add example array to config.php Remove $optional_functions from Duser_fluxbb to follow bb9f9274e8c2d661a1adffd87c87c3d81ec47b4d. Signed-off-by: Florian Pritz --- application/config/config.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'application/config') diff --git a/application/config/config.php b/application/config/config.php index 388776cda..5d6ea5d1f 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -408,6 +408,11 @@ if (extension_loaded("ldap")) { ); } +// This is only used it the driver is set to fluxbb +$config['auth_fluxbb'] = array( + 'database' => 'fluxbb' +); + // possible values: production, development $config['environment'] = "production"; -- cgit v1.2.3-24-g4f1b From 8956c3aec70ccc98ce2aa95249fc0d1c70809284 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 22 Sep 2013 09:36:59 +0200 Subject: Use InnoDB for the files table The files table was MyISAM even though all other tables were InnoDB. We should avoid mixing types here (backups, transactions and performance). Signed-off-by: Pierre Schmitz Signed-off-by: Florian Pritz --- application/config/migration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application/config') diff --git a/application/config/migration.php b/application/config/migration.php index 5fef0ad40..6cfd09a30 100644 --- a/application/config/migration.php +++ b/application/config/migration.php @@ -21,7 +21,7 @@ $config['migration_enabled'] = true; | be upgraded / downgraded to. | */ -$config['migration_version'] = 9; +$config['migration_version'] = 10; /* -- cgit v1.2.3-24-g4f1b 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