Skip to content

Instantly share code, notes, and snippets.

@mshmsh5000
Created February 6, 2014 21:46
Show Gist options
  • Select an option

  • Save mshmsh5000/8853150 to your computer and use it in GitHub Desktop.

Select an option

Save mshmsh5000/8853150 to your computer and use it in GitHub Desktop.
Alternate-port config
<?php
/**
* @file
* Drupal instance-specific configuration file. This is included at the end of
* the distributed settings.php, so use this to set everything related to
* your local instance.
*
* Example settings below. See the original settings.php for full
* documentation.
*
* TO USE: Copy to html/sites/default/settings.local.php and edit. Your local
* copy will be ignored by Git.
*/
// Database settings.
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => 'dosomething',
'username' => 'root',
'password' => '',
'host' => 'localhost',
'port' => '',
'driver' => 'mysql',
'prefix' => '',
),
),
);
// Salt for one-time login links and cancel links, form tokens, etc.
$drupal_hash_salt = '3i_SZ1VTl_8FBxXeZhTEvf6LkeVNypM0EV90tNuHs5k';
// Base URL (optional). This should make correspond to the securepages_basepath
// setting, below.
$base_url = 'http://dev.dosomething.org'; // NO trailing slash!
// Secure Pages integration.
$conf['https'] = TRUE;
$conf['securepages_basepath'] = 'http://dev.dosomething.org';
$conf['securepages_basepath_ssl'] = 'https://dev.dosomething.org';
// Add Varnish as the page cache handler.
$conf['varnish_version'] = '3';
$conf['cache_backends'] = array('profiles/dosomething/modules/contrib/varnish/varnish.cache.inc');
$conf['cache_class_cache_page'] = 'VarnishCache';
// This is managed from salt://varnishd/secret
$conf['varnish_control_key'] = '00c9203c65874ca5b4c359e19f00bf56';
// Drupal 7 does not cache pages when we invoke hooks during bootstrap.
// This needs to be disabled.
$conf['page_cache_invoke_hooks'] = FALSE;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment