Author: chabotc
Date: Tue Feb 24 00:15:50 2009
New Revision: 747232
URL: http://svn.apache.org/viewvc?rev=747232&view=rev
Log:
Add the missing feature_cache to the default config (and some white space fixes)
Modified:
incubator/shindig/branches/1.0.x-incubating/php/config/container.php
Modified: incubator/shindig/branches/1.0.x-incubating/php/config/container.php
URL:
http://svn.apache.org/viewvc/incubator/shindig/branches/1.0.x-incubating/php/config/container.php?rev=747232&r1=747231&r2=747232&view=diff
==============================================================================
--- incubator/shindig/branches/1.0.x-incubating/php/config/container.php
(original)
+++ incubator/shindig/branches/1.0.x-incubating/php/config/container.php Tue
Feb 24 00:15:50 2009
@@ -20,10 +20,10 @@
/**
* The default configuration settings
- *
+ *
* Put any site specific configuration in a config/local.php file, this way
* your configuration won't be lost when upgrading shindig.
- *
+ *
* in local.php you only have to specificy the fields you want to overwrite
* with other values, for example on a production system you would probably
have:
* $shindigConfig = array(
@@ -40,93 +40,95 @@
* 'xrds_location' => 'http://www.mycontainer.com/xrds',
* 'check_file_exists' => false
* );
- *
+ *
*/
$shindigConfig = array(
// Show debug backtrace's. Disable this on a production site
- 'debug' => true,
+ 'debug' => true,
// do real file_exist checks? Turning this off can be a big performance gain
on prod servers but also risky & less verbose errors
- 'check_file_exists' => true,
-
+ 'check_file_exists' => true,
+
// Allow plain text security tokens, this is only here to allow the sample
files to work. Disable on a production site
- 'allow_plaintext_token' => true,
+ 'allow_plaintext_token' => true,
// Compress the inlined javascript, saves upto 50% of the document size
- 'compress_javascript' => true,
-
+ 'compress_javascript' => true,
+
// The URL Prefix under which shindig lives ie if you have
http://myhost.com/shindig/php set web_prefix to /shindig/php
'web_prefix' => '',
// If you changed the web prefix, add the prefix to these too
- 'default_js_prefix' => '/gadgets/js/',
- 'default_iframe_prefix' => '/gadgets/ifr?',
-
+ 'default_js_prefix' => '/gadgets/js/',
+ 'default_iframe_prefix' => '/gadgets/ifr?',
+
// The X-XRDS-Location value for your implementing container, if any, see
http://code.google.com/p/partuza/source/browse/trunk/Library/XRDS.php for an
example
- 'xrds_location' => '',
+ 'xrds_location' => '',
// Allow anonymous (READ) access to the profile information? (aka REST and
JSON-RPC interfaces)
// setting this to false means you have to be authenticated through OAuth to
read the data
- 'allow_anonymous_token' => true,
-
+ 'allow_anonymous_token' => true,
+
// The encryption keys for encrypting the security token, and the expiration
of it. Make sure these match the keys used in your container/site
- 'token_cipher_key' => 'INSECURE_DEFAULT_KEY',
+ 'token_cipher_key' => 'INSECURE_DEFAULT_KEY',
'token_hmac_key' => 'INSECURE_DEFAULT_KEY',
- 'token_max_age' => 60 * 60,
-
+ 'token_max_age' => 60 * 60,
+
// Ability to customize the style thats injected into the gadget document.
Don't forget to put the link/etc colors in shindig/config/container.js too!
- 'gadget_css' => 'body,td,div,span,p{font-family:arial,sans-serif;} a
{color:#0000cc;}a:visited {color:#551a8b;}a:active {color:#ff0000;}body{margin:
0px;padding: 0px;background-color:white;}',
-
+ 'gadget_css' => 'body,td,div,span,p{font-family:arial,sans-serif;} a
{color:#0000cc;}a:visited {color:#551a8b;}a:active {color:#ff0000;}body{margin:
0px;padding: 0px;background-color:white;}',
+
// P3P privacy policy to use for the iframe document
- 'P3P' => 'CP="CAO PSA OUR"',
-
+ 'P3P' => 'CP="CAO PSA OUR"',
+
// The locations of the various required components on disk. If you did a
normal svn checkout there's no need to change these
- 'base_path' => realpath(dirname(__FILE__) . '/..') . '/',
- 'features_path' => realpath(dirname(__FILE__) . '/../../features') . '/',
- 'container_path' => realpath(dirname(__FILE__) . '/../../config') . '/',
- 'javascript_path' => realpath(dirname(__FILE__) . '/../../javascript') .
'/',
-
- // The OAuth SSL certificates to use, and the pass phrase for the private
key
- 'private_key_file' => realpath(dirname(__FILE__) . '/../certs') .
'/private.key',
- 'public_key_file' => realpath(dirname(__FILE__) . '/../certs') .
'/public.crt',
- 'private_key_phrase' => 'partuza',
+ 'base_path' => realpath(dirname(__FILE__) . '/..') . '/',
+ 'features_path' => realpath(dirname(__FILE__) . '/../../features') . '/',
+ 'container_path' => realpath(dirname(__FILE__) . '/../../config') . '/',
+ 'javascript_path' => realpath(dirname(__FILE__) . '/../../javascript') . '/',
+
+ // The OAuth SSL certificates to use, and the pass phrase for the private key
+ 'private_key_file' => realpath(dirname(__FILE__) . '/../certs') .
'/private.key',
+ 'public_key_file' => realpath(dirname(__FILE__) . '/../certs') .
'/public.crt',
+ 'private_key_phrase' => 'partuza',
// the path to the json db file, used only if your using the
JsonDbOpensocialService example/demo service
- 'jsondb_path' => realpath(dirname(__FILE__) .
'/../../javascript/sampledata') . '/canonicaldb.json',
-
+ 'jsondb_path' => realpath(dirname(__FILE__) .
'/../../javascript/sampledata') . '/canonicaldb.json',
+
// Force these libraries to be external (included through <script src="...">
tags), this way they could be cached by the browser
- 'focedJsLibs' => '',
+ 'focedJsLibs' => '',
// Configurable classes. Change these to the class name to use, and make
sure the auto-loader can find them
- 'blacklist_class' => 'BasicGadgetBlacklist',
+ 'blacklist_class' => 'BasicGadgetBlacklist',
'remote_content' => 'BasicRemoteContent',
- 'security_token_signer' => 'BasicSecurityTokenDecoder',
+ 'security_token_signer' => 'BasicSecurityTokenDecoder',
'security_token' => 'BasicSecurityToken',
- 'oauth_lookup_service' => 'BasicOAuthLookupService',
-
- // Caching back-end to use. Shindig ships with CacheFile and CacheMemcache
out of the box
- 'data_cache' => 'CacheFile',
+ 'oauth_lookup_service' => 'BasicOAuthLookupService',
+
+ // Caching back-end to use. defaults to CacheFile, but optimnal is probably
CacheMemcache (for a multi-server setup and high memory memcached servers)
+ 'data_cache' => 'CacheFile',
+ // Caching back-end to use for the features code, defaults to CacheFile, but
optimal for production is probably CacheAPC
+ 'feature_cache' => 'CacheFile',
// RESTful API data service classes to use
// See http://code.google.com/p/partuza/source/browse/#svn/trunk/Shindig for
a MySql powered example
- 'person_service' => 'JsonDbOpensocialService',
+ 'person_service' => 'JsonDbOpensocialService',
'activity_service' => 'JsonDbOpensocialService',
- 'app_data_service' => 'JsonDbOpensocialService',
- 'messages_service' => 'JsonDbOpensocialService',
+ 'app_data_service' => 'JsonDbOpensocialService',
+ 'messages_service' => 'JsonDbOpensocialService',
- // Also scan these directories when looking for <Class>.php files. You can
include multiple paths by seperating them with a ,
- 'extension_class_paths' => '',
+ // Also scan these directories when looking for <Class>.php files. You can
include multiple paths by seperating them with a ,
+ 'extension_class_paths' => '',
'userpref_param_prefix' => 'up_',
- 'libs_param_name' => 'libs',
+ 'libs_param_name' => 'libs',
// If you use CacheMemcache as caching backend, change these to the memcache
server settings
'cache_host' => 'localhost',
'cache_port' => 11211,
- 'cache_time' => 24 * 60 * 60,
+ 'cache_time' => 24 * 60 * 60,
// If you use CacheFile as caching backend, this is the directory where it
stores the temporary files
- 'cache_root' => '/tmp/shindig',
+ 'cache_root' => '/tmp/shindig',
// connection timeout setting for all curl requests, set this time something
low if you want errors reported
// quicker to the end user, and high (between 10 and 20) if your on a slow
connection
- 'curl_connection_timeout' => '10',
+ 'curl_connection_timeout' => '10',
// If your development server is behind a proxy, enter the proxy details
here in 'proxy.host.com:port' format.
'proxy' => ''