Created
January 31, 2020 16:26
-
-
Save Patrick64/77e1d456f28633b2becaa5b681e14467 to your computer and use it in GitHub Desktop.
EE2 config overrides sample
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
$protocol = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") ? "https://" : "http://"; | |
$site_url = $protocol.$_SERVER['HTTP_HOST']; | |
$config['tmpl_file_basepath'] = $_SERVER['DOCUMENT_ROOT'] . '/cmsadmin/expressionengine/templates'; | |
$config['share_analytics'] = 'y'; | |
$config['theme_folder_url'] = $site_url . '/themes/'; | |
$config['theme_folder_path'] = $_SERVER['DOCUMENT_ROOT'] . '/themes'; | |
$config['base_path'] = $_SERVER['DOCUMENT_ROOT']; | |
$config['base_url'] = $site_url; // CHECK this isn't defined below | |
$config['site_url'] = $site_url; | |
$config['cp_url'] = $site_url . "/cmsadmin/index.php"; | |
$config['upload_preferences'] = array( | |
1 => array( // ID of upload destination | |
'name' => 'Portraits', // Display name in control panel | |
'server_path' => $_SERVER['DOCUMENT_ROOT'] . '/images/portraits/', // Server path to upload directory | |
'url' => $site_url . '/images/portraits/' // URL of upload directory | |
), | |
2 => array( // ID of upload destination | |
'name' => 'Page image', // Display name in control panel | |
'server_path' => $_SERVER['DOCUMENT_ROOT'] . '/images/page_images/', // Server path to upload directory | |
'url' => $site_url . '/images/page_images/' // URL of upload directory | |
), | |
3 => array( // ID of upload destination | |
'name' => 'Resources', // Display name in control panel | |
'server_path' => $_SERVER['DOCUMENT_ROOT'] . '/images/resources/', // Server path to upload directory | |
'url' => $site_url . '/images/resources/' // URL of upload directory | |
), | |
); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment