Skip to content

Instantly share code, notes, and snippets.

@litzinger
Last active December 30, 2015 09:49
Show Gist options
  • Save litzinger/7811577 to your computer and use it in GitHub Desktop.
Save litzinger/7811577 to your computer and use it in GitHub Desktop.
EE config with htaccess that is unique per developer's environment. DB config is saved in an environment type, multiple developers connect to the same development database. Based off of @FocusLab's master config. Credit to @adrienneleigh for initially creating this.
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
This is the file unique to each environment type, can be:
config.local.php
config.production.php
config.staging.php
*/
/*
* --------------------------------------------------------------------
* Database Settings
* --------------------------------------------------------------------
*/
$env_db['hostname'] = '${projdb.server}';
$env_db['username'] = '${projdb.username}';
$env_db['password'] = '${projdb.password}';
$env_db['database'] = '${projdb.dbname}';
$env_db['cachedir'] = SYSTEM_PATH.'cache/db_cache/';
/*
* --------------------------------------------------------------------
* Config Settings
*
* If setting up the site manually, and not using Phing, remove the
* ${web.settings} and ${web.cesettings variables and uncomment the
* blocks below accordingly based on the environment.
* --------------------------------------------------------------------
*/
$env_config['is_system_on'] = 'y';
$env_config['webmaster_email'] = '${project.contactemail}';
// Development, Staging, Local
$env_config["login_reminder"] = "n";
$env_config["user_session_ttl"] = 600000;
$env_config["cp_session_ttl"] = 600000;
$env_config["admin_session_type"] = "c";
$env_config["user_session_type"] = "c";
$env_config["require_ip_for_login"] = "n";
$env_config["require_ip_for_posting"] = "n";
/**
* Custom Stash variables
*/
$env_config['stash_save'] = 'no';
$env_config['stash_parse_tags'] = 'yes';
$env_config['stash_scope'] = 'site';
$env_config['stash_refresh'] = 43200; // 30 day cache time
$env_config['stash_key_prefix'] = 'publisher:current_language_code';
/**
* CE Image Overrides
*/
$env_config["ce_image_document_root"] = ASSETS_PATH."assets/uploads/";
$env_config["ce_image_cache_dir"] = "resized/"; // ^^^ added to the END of the above
$env_config["ce_image_remote_dir"] = "remote/"; // ^^^ added to the END of the above
$env_config["ce_image_image_permissions"] = 0664;
$env_config['ce_image_current_domain'] = WEB_BASE_URL;
// These seem to be the most reliable settings for the widest range
// of environments, e.g. localhost dev with remote assets files
$env_config['ce_image_hide_relative_path'] = 'yes';
$env_config['ce_image_force_remote'] = 'yes';
$env_config['ce_image_made_regex'] = array(
'^/' => WEB_BASE_URL."assets/uploads/"
);
if (ENV_TYPE == 'production')
{
$env_config["login_reminder"] = "y";
$env_config["user_session_ttl"] = 1800; // 30 minutes
$env_config["cp_session_ttl"] = 1800; // 30 minutes
$env_config["admin_session_type"] = "cs";
$env_config["user_session_type"] = "c";
$env_config["require_ip_for_login"] = "y";
$env_config["require_ip_for_posting"] = "y";
}
/*
* --------------------------------------------------------------------
* Extra Config Settings
* --------------------------------------------------------------------
*/
$env_global = array(
);
#
# --------------------------------------------------------------------
# Basic site settings
# --------------------------------------------------------------------
#
<IfModule mod_rewrite.c>
RewriteBase "${project.localurl}"
</IfModule>
SetEnv QUERY_LOGGING_ENABLED n
# Base URL -- USE A TRAILING SLASH
SetEnv WEB_BASE_PATH "${project.localpath}"
SetEnv WEB_BASE_URL "${project.localurl}"
# Assets Path Info -- USE A TRAILING SLASH
SetEnv ASSETS_PATH "${project.stagingpath}"
SetEnv ASSETS_URL "${project.stagingurl}"
# Application Environment (which config file to use)
# development, production, staging, or qa
SetEnv ENV_TYPE "${project.envtype}"
#
# --------------------------------------------------------------------
# Apache Options
# --------------------------------------------------------------------
#
Options All -Indexes
Options +FollowSymLinks
Options -MultiViews
#
# --------------------------------------------------------------------
# Increase PHP Limits if possible
# --------------------------------------------------------------------
#
php_value upload_max_filesize 100M
php_value post_max_size 100M
php_value memory_limit 256M
# Required for generic_error.php
php_value short_open_tag 1
#
# --------------------------------------------------------------------
# Force character set and default language
# --------------------------------------------------------------------
#
<FilesMatch "\.(xml|html|css|js|htm|xhtml|json|rss)$">
AddDefaultCharset utf-8
DefaultLanguage en-US
</FilesMatch>
AddCharset utf-8 .html .htm .xhtml .css .js .xml .json .rss
AddLanguage en-US .html .htm .xhtml .css .js .xml .json .rss
#
# --------------------------------------------------------------------
# Rewrites
# --------------------------------------------------------------------
#
<IfModule mod_rewrite.c>
RewriteEngine On
# Prevent access to important files
RewriteRule "(^|/)\." - [F,L]
RewriteRule ^(.*\.(sql|log|dist|bak))$ - [F,L]
RewriteRule ^(.*\.htaccess)$ - [F,L]
RewriteRule ^(.*_phing\.htaccess)$ - [F,L]
RewriteRule ^(.*build\.xml)$ - [F,L]
RewriteRule ^(.*\/(templates|snippets|third_party|logs|system)(\/|$))$ - [F,L]
RewriteRule ^assets/uploads/.*\.(htaccess|htpasswd|ini|phps?|fla|psd|log|sh|zip|exe|pl|jsp|asp|htm|sh|cgi|py)$ - [F]
# Canonicalize the domain, use only one of the following
# Remove the www
# RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
# RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
# OR add the www
# RewriteCond %{HTTP_HOST} ^domain.com$ [NC]
# RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
# Add trailing slash to paths without an extension
# RewriteCond %{REQUEST_METHOD} !=POST
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
# RewriteRule ^(.*)$ $1/ [L,R=301]
# Finally remove index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
#
# --------------------------------------------------------------------
# Set mime types to prevent content issues
# --------------------------------------------------------------------
#
# Common types
AddType application/javascript js
# HTC Files (for IE hacks)
AddType text/x-component htc
# audio
AddType audio/ogg oga ogg
AddType audio/mp4 m4a
# video
AddType video/ogg ogv
AddType video/mp4 mp4 m4v
AddType video/webm webm
# SVG
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
# Webfonts
AddType application/vnd.ms-fontobject eot
AddType font/ttf ttf ttc
AddType font/otf otf
AddType font/x-woff woff
# Other
AddType text/calendar ics
AddType image/x-icon ico
AddType image/webp webp
AddType text/cache-manifest appcache manifest
AddType application/x-chrome-extension crx
AddType application/x-xpinstall xpi
AddType application/octet-stream safariextz
AddType text/x-vcard vcf
#
# --------------------------------------------------------------------
# Force the latest version of IE
# --------------------------------------------------------------------
#
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
BrowserMatch MSIE ie
Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie
</IfModule>
</IfModule>
#
# --------------------------------------------------------------------
# GZip Compression
# --------------------------------------------------------------------
#
<IfModule mod_deflate.c>
# force deflate for mangled headers
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
</IfModule>
</IfModule>
# HTML, TXT, CSS, JavaScript, JSON, XML, HTC, FONTS
<IfModule filter_module>
FilterDeclare COMPRESS
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/html
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/css
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/plain
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/x-component
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/javascript
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/json
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/xhtml+xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/rss+xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/atom+xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/vnd.ms-fontobject
FilterProvider COMPRESS DEFLATE resp=Content-Type $image/svg+xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/x-font-ttf
FilterProvider COMPRESS DEFLATE resp=Content-Type $font/opentype
FilterChain COMPRESS
FilterProtocol COMPRESS DEFLATE change=yes;byteranges=no
</IfModule>
# Legacy versions of Apache
<IfModule !mod_filter.c>
AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
AddOutputFilterByType DEFLATE application/xhtml+xml application/rss+xml application/atom+xml
AddOutputFilterByType DEFLATE image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype
</IfModule>
</IfModule>
#
# --------------------------------------------------------------------
# Content Expiration
# --------------------------------------------------------------------
#
# Far-Future Expires Headers
# Uncomment when you go-live
# <IfModule mod_expires.c>
# Header set cache-control: public
# ExpiresActive on
#
# # Perhaps better to whitelist expires rules? Perhaps.
# ExpiresDefault "access plus 1 month"
#
# # cache.manifest needs re-reqeusts in FF 3.6 (thx Remy ~Introducing HTML5)
# ExpiresByType text/cache-manifest "access plus 0 seconds"
#
# # your document html
# ExpiresByType text/html "access"
#
# # rss feed
# ExpiresByType application/rss+xml "access plus 1 hour"
#
# # favicon (cannot be renamed)
# ExpiresByType image/vnd.microsoft.icon "access plus 1 week"
#
# # media: images, video, audio
# ExpiresByType image/png "access plus 1 month"
# ExpiresByType image/jpg "access plus 1 month"
# ExpiresByType image/jpeg "access plus 1 month"
# ExpiresByType video/ogg "access plus 1 month"
# ExpiresByType audio/ogg "access plus 1 month"
# ExpiresByType video/mp4 "access plus 1 month"
#
# # webfonts
# ExpiresByType font/ttf "access plus 1 month"
# ExpiresByType font/woff "access plus 1 month"
# ExpiresByType image/svg+xml "access plus 1 month"
#
# # css and javascript
# ExpiresByType text/css "access plus 1 week"
# ExpiresByType application/javascript "access plus 1 week"
# ExpiresByType text/javascript "access plus 1 week"
# </IfModule>
# Since we're sending far-future expires, we don't need ETags for
# static content.
# developer.yahoo.com/performance/rules.html#etags
# FileETag None
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
// If this equates to TRUE then we're in the config.php file
if (isset($config))
{
/*
* --------------------------------------------------------------------
* Basic site settings
* --------------------------------------------------------------------
*/
$env_config['license_number'] = '';
$env_config['site_label'] = 'EE Default'; // NOTE: as of EE 2.4 this doesn't work
/*
* --------------------------------------------------------------------
* Security settings
* --------------------------------------------------------------------
*/
$env_config['secure_forms'] = 'y'; // leave forms secure!
$env_config['xss_clean_member_exception'] = ''; // pipe-delimited
$env_config['xss_clean_member_group_exception'] = '1|6'; // 1 = SuperAdmin ; 6 = Site Admin
/*
* --------------------------------------------------------------------
* Date time settings
* --------------------------------------------------------------------
*/
$env_config['daylight_savings'] = date('I') ? 'y' : 'n';
$env_config['server_timezone'] = 'UTC';
$env_config['honor_entry_dst'] = 'y';
/*
* --------------------------------------------------------------------
* Default themes for users
* --------------------------------------------------------------------
*/
$env_config['cp_theme'] = 'nerdery';
$env_config['member_theme'] = 'default';
/*
* --------------------------------------------------------------------
* Caching
*
* SQL caching can cause content issues; it's best to leave it disabled
* Don't use standard tag caching in conjunction with Stash or CE Cache!
*
* Of course your milage may vary depending on the situation
* --------------------------------------------------------------------
*/
$env_config['enable_sql_caching'] = 'n';
$env_config['disable_tag_caching'] = 'y';
/*
* --------------------------------------------------------------------
* Debugging
* --------------------------------------------------------------------
*/
$env_config['allow_extensions'] = "y";
$env_config['email_debug'] = ( ! ENV_DEBUG) ? 'n' : 'y' ;
$env_config['show_profiler'] = ( ! ENV_DEBUG || (isset($_GET['D']) && $_GET['D'] == 'cp')) ? 'n' : 'y' ;
$env_config['template_debugging'] = ( ! ENV_DEBUG) ? 'n' : 'y' ;
$env_config['debug'] = ( ! ENV_DEBUG) ? '1' : '2' ; // NEVER set this to 0!
/*
* --------------------------------------------------------------------
* Third-party add-on config options
* --------------------------------------------------------------------
*/
$env_config['url_helper']['prefix'] = 'url:';
/*
* --------------------------------------------------------------------
* Misc config
* --------------------------------------------------------------------
*/
$env_config['view_comment_leave_breaks'] = 'y';
$env_config['moblog_allow_nontextareas'] = 'y';
$env_config['cookie_prefix'] = '';
$env_config['view_comment_chars'] = '250';
/*
* --------------------------------------------------------------------
* Tracking config
* --------------------------------------------------------------------
*/
$env_config['disable_all_tracking'] = 'y'; // If set to 'y' some of the below settings are disregarded
$env_config['enable_online_user_tracking'] = 'n';
$env_config['dynamic_tracking_disabling'] = '500';
$env_config['enable_hit_tracking'] = 'n';
$env_config['enable_entry_view_tracking'] = 'n';
$env_config['log_referrers'] = 'n';
$env_config['relaxed_track_views'] = 'n';
/*
* --------------------------------------------------------------------
* Template & Snippet config options
* --------------------------------------------------------------------
*/
$env_config['hidden_template_indicator'] = '_';
$env_config['save_tmpl_files'] = 'y';
$env_config['tmpl_file_basepath'] = WEB_BASE_PATH.'templates/';
$env_config['snippet_file_basepath'] = WEB_BASE_PATH.'snippets/';
/*
* --------------------------------------------------------------------
* File Upload Preferences Overrides
* --------------------------------------------------------------------
*/
if('2.4.0' <= $config['app_version'])
{
$assets_full_path = ASSETS_PATH .'assets/uploads/';
$assets_full_url = ASSETS_URL .'assets/uploads/';
// The keys in this array MUST match the directory IDs from exp_upload_prefs
$env_config['upload_preferences'] = array(
1 => array(
'name' => 'Images',
'server_path' => "{$assets_full_path}images/",
'url' => "{$assets_full_url}images/"
),
2 => array(
'name' => 'Documents',
'server_path' => "{$assets_full_path}documents/",
'url' => "{$assets_full_url}documents/"
),
3 => array(
'name' => 'Media',
'server_path' => "{$assets_full_path}media/",
'url' => "{$assets_full_url}media/"
)
);
}
/*
* --------------------------------------------------------------------
* Paths & URLs
* --------------------------------------------------------------------
*/
$env_config['site_url'] = WEB_BASE_URL;
$env_config['cp_url'] = WEB_BASE_URL.'admin.php';
$env_config['theme_folder_path'] = WEB_BASE_PATH.'themes';
$env_config['theme_folder_url'] = WEB_BASE_URL.'themes/';
$env_config['third_party_path'] = WEB_BASE_PATH. 'third_party/';
$imagepath = ASSETS_PATH.'images/';
$imageurl = ASSETS_URL. 'images/';
$env_config['captcha_path'] = $imagepath.'captchas/';
$env_config['captcha_url'] = $imageurl. 'captchas/';
$env_config['emoticon_path'] = $imagepath.'smileys/';
$env_config['emoticon_url'] = $imageurl. 'smileys/';
$env_config['avatar_path'] = $imagepath.'avatars/';
$env_config['avatar_url'] = $imageurl. 'avatars/';
$env_config['photo_path'] = $imagepath.'member_photos/';
$env_config['photo_url'] = $imageurl. 'member_photos/';
$env_config['sig_img_path'] = $imagepath.'signature_attachments/';
$env_config['sig_img_url'] = $imageurl. 'signature_attachments/';
$env_config['prv_msg_upload_path'] = $imagepath.'pm_attachments/';
$env_config['prv_msg_upload_url'] = $imageurl. 'pm_attachments/';
$env_config['board_upload_path'] = $imagepath.'forum_attachments/';
$env_config['board_upload_url'] = $imageurl. 'forum_attachments/';
/*
* --------------------------------------------------------------------
* Global Variables
* --------------------------------------------------------------------
*/
// Set up our template-level global variables
global $assign_to_config;
isset($assign_to_config['global_vars']) || $assign_to_config['global_vars'] = array();
// Create some useful global variables
$master_global = array(
// Disable tag parameters
'global:disable' => 'disable="trackbacks|pagination"',
'global:disable_strict' => 'disable="trackbacks|pagination|member_data|category_fields"',
'global:disable_all' => 'disable="trackbacks|pagination|member_data|category_fields|categories|custom_fields"',
// DEPRECATED - Use full tag inclusion variables above instead.
'global:disabled_params' => 'trackbacks|pagination',
'global:disabled_params_strict' => 'trackbacks|pagination|member_data|category_fields',
'global:disabled_params_all' => 'trackbacks|pagination|member_data|category_fields|categories|custom_fields',
// Date and time
'global:date_time' => '%g:%i %a',
'global:date_short' => '%F %d, %Y',
'global:date_full' => '%F %d %Y, %g:%i %a',
// Environment indicators
'env:env_short' => ENV_TYPE,
'env:env_full' => ucwords(ENV_TYPE),
// Globally control tag caching in one place
'global:tag_cache' => 'cache="yes" refresh="1600"',
// URLs to link all uploaded images/assets from the staging site
'url:assets' => ASSETS_URL,
'path:assets' => ASSETS_PATH,
// Just shortening paths for styles, site images and scripts
'url:asset_images' => WEB_BASE_URL.'assets/images/',
'url:asset_styles' => WEB_BASE_URL.'assets/styles/',
'url:asset_scripts' => WEB_BASE_URL.'assets/scripts/',
// Link to external CDNs or other external resources
// with something like "{env:scheme}://use.typekit.com/something.js"
'env:scheme' => (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http',
// Create a valid RSS feed URL
'url:feed_url' => str_replace('http://', 'feed://', WEB_BASE_URL)
);
/*
* --------------------------------------------------------------------
* Include the environment specific config file
* --------------------------------------------------------------------
*/
if ( ! file_exists(SYSTEM_PATH.'config/config.'.ENV_TYPE.'.php'))
{
exit('Your environment is not configured properly. It is missing the config.'.ENV_TYPE.'.php file.');
}
// Load our environment-specific config file
require SYSTEM_PATH.'config/config.'.ENV_TYPE.'.php';
// Load our SANDBOX config file in case there are overrides. Not all environments need this, e.g. production
if (file_exists('config.local.php'))
{
require SYSTEM_PATH.'config/config.local.php';
}
// Load DBLogger if it exists
if (file_exists($env_config['third_party_path'].'dblogger/dblogger_config.php'))
{
require_once $env_config['third_party_path'].'dblogger/dblogger_config.php';
}
/*
* --------------------------------------------------------------------
* Merge everything into a single array
* --------------------------------------------------------------------
*/
$config = array_merge($config, $env_config); // config setting arrays
$assign_to_config['global_vars'] = array_merge($assign_to_config['global_vars'], $master_global, $env_global); // global var arrays
/*
* --------------------------------------------------------------------
* Cleanup
* --------------------------------------------------------------------
*/
unset($env_config);
unset($master_global);
unset($env_global);
} // End if (isset($config)) {}
/*
* --------------------------------------------------------------------
* Include environement specific config
* --------------------------------------------------------------------
*/
if (isset($db['expressionengine']))
{
if ( ! file_exists(SYSTEM_PATH.'config/config.'.ENV_TYPE.'.php'))
{
exit('Your environment is not configured properly. It is missing the config.'.ENV_TYPE.'.php file.');
}
// Load our environment-specific config file
require SYSTEM_PATH.'config/config.'.ENV_TYPE.'.php';
// Load our SANDBOX config file in case there are overrides. Not all environments need this, e.g. production
if (file_exists(SYSTEM_PATH.'config/config.local.php'))
{
require SYSTEM_PATH.'config/config.local.php';
}
$db['expressionengine'] = array_merge($db['expressionengine'], $env_db);
unset($env_db);
}
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
* --------------------------------------------------------------------
* Application environment constants, set from .htaccess file
* --------------------------------------------------------------------
*/
defined('ENV_TYPE') || define('ENV_TYPE', (getenv('ENV_TYPE') ? getenv('ENV_TYPE') : 'development'));
defined('WEB_BASE_URL') || define('WEB_BASE_URL', (getenv('WEB_BASE_URL') ? getenv('WEB_BASE_URL') : '/'));
defined('WEB_BASE_PATH') || define('WEB_BASE_PATH', (getenv('WEB_BASE_PATH') ? getenv('WEB_BASE_PATH') : APPPATH));
defined('SYSTEM_PATH') || define('SYSTEM_PATH', WEB_BASE_PATH . 'system/expressionengine/');
defined('ASSETS_PATH') || define('ASSETS_PATH', (getenv('ASSETS_PATH') ? getenv('ASSETS_PATH') : FCPATH));
defined('ASSETS_URL') || define('ASSETS_URL', (getenv('ASSETS_URL') ? getenv('ASSETS_URL') : WEB_BASE_URL));
defined('ENV_DEBUG') || define('ENV_DEBUG', (('production' == ENV_TYPE) ? FALSE : TRUE));
/*
* --------------------------------------------------------------------
* ExpressionEngine Config Items
*
* The following settings are in this file because EE actually updates them during updates and
* needs to have access to them. Do NOT move them to one of the environment-specific config files.
* --------------------------------------------------------------------
*/
$config['app_version'] = "272";
$config['install_lock'] = "y";
$config['multiple_sites_enabled'] = 'n';
// These settings are in this file because no one should EVER need to change them.
$config['doc_url'] = "http://ellislab.com/expressionengine/user-guide/";
$config['profile_trigger'] = md5(mt_rand()); // randomize the member profile trigger word because we'll never need it
$config['gzip_output'] = 'n'; // It is VERY IMPORTANT to leave this turned off!
/*
* --------------------------------------------------------------------
* CodeIgniter Config Items
*
* These should rarely, if ever be changed.
* --------------------------------------------------------------------
*/
$config['base_url'] = WEB_BASE_URL;
$config['index_page'] = '';
$config['site_index'] = '';
$config['time_reference'] = 'gmt';
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\\-=&\[\]';
$config['encryption_key'] = '[Fvds?5D0QU^NG-7##;YLv^A3,0([q!o';
$config['language'] = 'english';
$config['charset'] = 'UTF-8';
$config['global_xss_filtering'] = FALSE;
$config['csrf_protection'] = FALSE; // Leave set to false or many shared hosting setups break
$config['cache_path'] = '';
$config['proxy_ips'] = '';
$config['subclass_prefix'] = 'EE_';
$config['url_suffix'] = '';
$config['enable_query_strings'] = FALSE;
$config['directory_trigger'] = 'D';
$config['controller_trigger'] = 'C';
$config['function_trigger'] = 'M';
$config['log_path'] = '';
$config['log_date_format'] = 'Y-m-d H:i:s';
$config['compress_output'] = FALSE; // Never turn this on
$config['rewrite_short_tags'] = TRUE;
$config['enable_hooks'] = FALSE;
/*
* --------------------------------------------------------------------
* 0 = Disables logging, Error logging TURNED OFF
* 1 = Error Messages (including PHP errors)
* 2 = Debug Messages
* 3 = Informational Messages
* 4 = All Messages
* --------------------------------------------------------------------
*/
$config['log_threshold'] = 0;
/*
* --------------------------------------------------------------------
* 'AUTO' Default - auto detects
* 'PATH_INFO' - Uses the PATH_INFO
* 'REQUEST_URI' - Uses the REQUEST_URI
* 'QUERY_STRING' - Uses the QUERY_STRING
* 'ORIG_PATH_INFO' - Uses the ORIG_PATH_INFO
* --------------------------------------------------------------------
*/
$config['uri_protocol'] = 'REQUEST_URI';
/*
* --------------------------------------------------------------------
* Load environment specific configs
* --------------------------------------------------------------------
*/
require(SYSTEM_PATH.'config/config.master.php');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment