From fd19c1b5acf2aa559ae41a9df501ad6951e2a573 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Fri, 25 Nov 2011 12:05:02 -0500 Subject: [PATCH] Added CDN settings to default Chamilo configuration - useless for now, just preparing the common ground --- main/install/configuration.dist.php | 85 ++++++++++++++++++----------- 1 file changed, 52 insertions(+), 33 deletions(-) diff --git a/main/install/configuration.dist.php b/main/install/configuration.dist.php index 84ec56833a..fbe98d4be3 100644 --- a/main/install/configuration.dist.php +++ b/main/install/configuration.dist.php @@ -2,18 +2,16 @@ // Chamilo version {NEW_VERSION} // File generated by /install/index.php script - {DATE_GENERATED} /* For licensing terms, see /license.txt */ -/* -============================================================================== - Virtual campus configuration - -This file contains a list of variables that can be modified by the campus -site's server administrator. Pay attention when changing these variables, -some changes may cause Chamilo to stop working. -If you changed some settings and want to restore them, please have a look at -configuration.dist.php. That file is an exact copy of the config file at -install time. -============================================================================== -*/ +/** + * Virtual campus configuration + * + * This file contains a list of variables that can be modified by the campus + * site's server administrator. Pay attention when changing these variables, + * some changes may cause Chamilo to stop working. + * If you changed some settings and want to restore them, please have a look at + * configuration.dist.php. That file is an exact copy of the config file at + * install time. + */ /** * $_configuration define only the bare essential variables @@ -27,9 +25,9 @@ install time. * script creates the necessary tables anyway). */ -//============================================================================ -// MYSQL connection settings -//============================================================================ +/** + * MYSQL connection settings + */ // Your MySQL server $_configuration['db_host'] = '{DATABASE_HOST}'; // Your MySQL username @@ -37,9 +35,9 @@ $_configuration['db_user'] = '{DATABASE_USER}'; // Your MySQL password $_configuration['db_password'] = '{DATABASE_PASSWORD}'; -//============================================================================ -// Database settings -//============================================================================ +/** + * Database settings + */ // Is tracking enabled? $_configuration['tracking_enabled'] = TRACKING_ENABLED; // Is single database enabled (DO NOT MODIFY THIS) @@ -58,10 +56,9 @@ $_configuration['statistics_database'] ='{DATABASE_STATS}'; // (personal agenda items, course sorting) $_configuration['user_personal_database']='{DATABASE_PERSONAL}'; -//============================================================================ -// Directory settings -//============================================================================ - +/** + * Directory settings + */ // URL to the root of your Chamilo installation, e.g.: http://www.mychamilo.com/ $_configuration['root_web'] = '{ROOT_WEB}'; @@ -81,9 +78,10 @@ $_configuration['course_folder'] = "courses/"; // If not empty, a link will be available in the Platform Administration $_configuration['db_admin_path'] = ''; -//============================================================================ -// Login modules settings -//============================================================================ +/** + * + * Login modules settings + */ // For new login module // Uncomment these lines to activate ldap // $extAuthSource["ldap"]["login"] = $_configuration['root_sys'].$_configuration['code_append']."auth/ldap/login.php"; @@ -93,11 +91,12 @@ $_configuration['db_admin_path'] = ''; // $extAuthSource["external_logininfo"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_logininfo/newUser.php"; // $extAuthSource["external_logininfo"]["updateUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_logininfo/updateUser.php"; -//============================================================================ -// Hosting settings - Allows you to set limits to the Chamilo portal when -// hosting it for a third party. These settings can be overwritten by an -// optionally-loaded extension file with only the settings (no comments). -//============================================================================ +/** + * + * Hosting settings - Allows you to set limits to the Chamilo portal when + * hosting it for a third party. These settings can be overwritten by an + * optionally-loaded extension file with only the settings (no comments). + */ // Set a maximum number of users. Default (0) = no limit $_configuration['hosting_limit_users'] = 0; // Set a maximum number of teachers. Default (0) = no limit @@ -110,9 +109,29 @@ $_configuration['hosting_limit_sessions'] = 0; // Default (0) = no limit $_configuration['hosting_limit_disk_space'] = 0; -//============================================================================ -// Misc. settings -//============================================================================ +/** + * Content Delivery Network (CDN) settings. Only use if you need a separate + * server to serve your static data. If you don't know what a CDN is, you + * don't need it. These settings are for simple Origin Pull CDNs and are + * experimental. Enable only if you really know what you're doing. + */ +// Set the following setting to true to start using the CDN +$_configuration['cdn_enable'] = false; +// The following setting will be ignored if the previous one is set to false +$_configuration['cdn'] = array( + // you can define several CDNs and split them by extensions + 0 => array( + //replace the following by your full CDN URL, which should point to + // your Chamilo's root directory, including the final slash + 'url' => 'http://cdn.chamilo.org/', + 'ext' => array('.css','.js','.jpg','.jpeg','.png','.gif','.avi','.flv'), + ), + // copy the section above and modify following your needs +); + +/** + * Misc. settings + */ // Verbose backup $_configuration['verbose_backup'] = false; // security word for password recovery