Last active
August 29, 2015 14:00
-
-
Save welly/4994cd8365338f28344a to your computer and use it in GitHub Desktop.
Standard, semi-minimised Drupal settings.php file for Drupal 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$databases = array ( | |
'default' => | |
array ( | |
'default' => | |
array ( | |
'database' => getenv('DB_NAME'), | |
'username' => getenv('DB_USER'), | |
'password' => getenv('DB_PASS'), | |
'host' => getenv('DB_HOST'), | |
'port' => '', | |
'driver' => 'mysql', | |
'prefix' => '', | |
), | |
), | |
); | |
$update_free_access = FALSE; | |
$drupal_hash_salt = 'wZi6V3icR6wRS3W7eykXOAsNjqiLX7P7kVpKQMNDDKw'; | |
$base_root = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http'; | |
$base_url = $base_root .= '://'. $_SERVER['HTTP_HOST']; | |
$cookie_domain = '.'.preg_replace('/^www\./','',$_SERVER['HTTP_HOST']); | |
ini_set('memory_limit', '128M'); | |
ini_set('session.gc_probability', 1); | |
ini_set('session.gc_divisor', 100); | |
ini_set('session.gc_maxlifetime', 200000); | |
ini_set('session.cookie_lifetime', 2000000); | |
$conf['file_public_path'] = 'sites/default/files'; | |
$conf['404_fast_paths_exclude'] = '/\/(?:styles)\//'; | |
$conf['404_fast_paths'] = '/\.(?:txt|png|gif|jpe?g|css|js|ico|swf|flv|cgi|bat|pl|dll|exe|asp)$/i'; | |
$conf['404_fast_html'] = '<html xmlns="http://www.w3.org/1999/xhtml"><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL "@path" was not found on this server.</p></body></html>'; | |
$conf['https'] = TRUE; | |
/*** bypass proxy - added by crispin */ | |
$conf['https'] = TRUE; | |
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && | |
$_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') { | |
$_SERVER['HTTPS'] = 'on'; | |
} | |
require (__DIR__ . '/environments.inc'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment