Elgg  Version 4.3
settings.example.php
Go to the documentation of this file.
1 <?php
13 date_default_timezone_set('{{timezone}}');
14 
16 if (!isset($CONFIG)) {
17  $CONFIG = new \stdClass;
18 }
19 
20 /*
21  * Standard configuration
22  *
23  * You will use the same database connection for reads and writes.
24  * This is the easiest configuration, and will suit 99.99% of setups. However, if you're
25  * running a really popular site, you'll probably want to spread out your database connections
26  * and implement database replication. That's beyond the scope of this configuration file
27  * to explain, but if you know you need it, skip past this section.
28  */
29 
35 $CONFIG->dataroot = "{{dataroot}}";
36 
44 $CONFIG->wwwroot = "{{wwwroot}}";
45 
51 $CONFIG->dbuser = '{{dbuser}}';
52 
58 $CONFIG->dbpass = '{{dbpassword}}';
59 
65 $CONFIG->dbname = '{{dbname}}';
66 
74 $CONFIG->dbhost = '{{dbhost}}';
75 
83 $CONFIG->dbport = '{{dbport}}';
84 
94 $CONFIG->dbprefix = '{{dbprefix}}';
95 
105 $CONFIG->dbencoding = 'utf8mb4';
106 
115 //$CONFIG->db['split'] = true;
116 
117 //$CONFIG->db['write']['dbuser'] = "";
118 //$CONFIG->db['write']['dbpass'] = "";
119 //$CONFIG->db['write']['dbname'] = "";
120 //$CONFIG->db['write']['dbhost'] = "";
121 //$CONFIG->db['write']['dbport'] = "";
122 
123 //$CONFIG->db['read'][0]['dbuser'] = "";
124 //$CONFIG->db['read'][0]['dbpass'] = "";
125 //$CONFIG->db['read'][0]['dbname'] = "";
126 //$CONFIG->db['read'][0]['dbhost'] = "";
127 //$CONFIG->db['read'][0]['dbport'] = "";
128 //$CONFIG->db['read'][1]['dbuser'] = "";
129 //$CONFIG->db['read'][1]['dbpass'] = "";
130 //$CONFIG->db['read'][1]['dbname'] = "";
131 //$CONFIG->db['read'][1]['dbhost'] = "";
132 //$CONFIG->db['read'][1]['dbport'] = "";
133 
148 //$CONFIG->memcache = true;
149 //
150 //$CONFIG->memcache_servers = array (
151 // array(
152 // 'host' => 'server1',
153 // 'port' => 11211,
154 // ),
155 // array(
156 // 'host' => 'server2',
157 // 'port' => 11211,
158 // ),
159 //);
160 
161 // namespace prefix (can only be used with memcached)
162 // $CONFIG->memcache_namespace_prefix = '';
163 
168 //$CONFIG->redis = true;
169 //
170 //$CONFIG->redis_options = array (
171 // 'database' => '', // The "database" option lets developers specific which specific database to use.
172 // 'password' => '', // The "password" option is used for clusters which required authentication.
173 //);
174 //
175 // Only one server can be configured
176 //$CONFIG->redis_servers = array (
177 // array(
178 // 'host' => 'server1',
179 // 'port' => 6379,
180 // ),
181 //);
182 
191 //$CONFIG->simplecache_enabled = true;
192 
200 //$CONFIG->boot_cache_ttl = 3600;
201 
210 //$CONFIG->cacheroot = "";
211 
219 //$CONFIG->localcacheroot = "";
220 
229 //$CONFIG->assetroot = "";
230 
239 //$CONFIG->bootdata_plugin_settings_limit = 0;
240 
249 //$CONFIG->{'X-Sendfile-Type'} = '';
250 
258 //$CONFIG->{'X-Accel-Mapping'} = '';
259 
276 // get the default parameters from php.ini
277 //$CONFIG->cookies['session'] = session_get_cookie_params();
278 //$CONFIG->cookies['session']['name'] = "Elgg";
279 // optionally overwrite the defaults from php.ini below
280 //$CONFIG->cookies['session']['path'] = "/";
281 //$CONFIG->cookies['session']['domain'] = "";
282 //$CONFIG->cookies['session']['secure'] = false;
283 //$CONFIG->cookies['session']['httponly'] = false;
284 
285 // extended session cookie
286 //$CONFIG->cookies['remember_me'] = session_get_cookie_params();
287 //$CONFIG->cookies['remember_me']['name'] = "elggperm";
288 //$CONFIG->cookies['remember_me']['expire'] = strtotime("+30 days");
289 // optionally overwrite the defaults from php.ini below
290 //$CONFIG->cookies['remember_me']['path'] = "/";
291 //$CONFIG->cookies['remember_me']['domain'] = "";
292 //$CONFIG->cookies['remember_me']['secure'] = false;
293 //$CONFIG->cookies['remember_me']['httponly'] = false;
294 
304 $CONFIG->db_disable_query_cache = false;
305 
317 $CONFIG->auto_disable_plugins = true;
318 
325 //$CONFIG->class_loader_verify_file_existence = false;
326 
342 $CONFIG->exception_include = '';
343 
348 //if (isset($_REQUEST['__some_secret__'])) {
349 //
350 // // send profiling data to the JS console?
351 // $CONFIG->enable_profiling = true;
352 //
353 // // profile all queries? A page with a ton of queries could eat up memory.
354 // $CONFIG->profiling_sql = false;
355 //
356 // // in the list, don't include times that don't contribute at least this much to the
357 // // total time captured. .1% by default
358 // $CONFIG->profiling_minimum_percentage = .1;
359 //}
360 
369 $CONFIG->action_time_limit = 120;
370 
379 $CONFIG->allow_phpinfo = false;
380 
390 //$CONFIG->image_processor = 'imagick';
391 
398 //$CONFIG->webp_enabled = false;
399 
407 //$CONFIG->email_subject_limit = 998;
408 
418 //$CONFIG->emailer_transport = 'sendmail';
419 
423 //$CONFIG->emailer_sendmail_settings = '';
424 
432 //$CONFIG->emailer_smtp_settings = array(
433 // 'name' => 'localhost.localdomain',
434 // 'host' => '127.0.0.1',
435 // 'port' => 25,
436 // 'connection_class' => 'login',
437 // 'connection_config' => [
438 // 'username' => 'user',
439 // 'password' => 'pass',
440 // 'ssl' => '', // OPTIONAL (tls or ssl)
441 // 'port' => '', // OPTIONAL (Non-SSL default 25, SSL default 465, TLS default 587)
442 // 'use_complete_quit' => '', // OPTIONAL
443 // ],
444 //);
445 
455 //$CONFIG->notifications_queue_delay = 180;
456 
462 $CONFIG->proxy = [
463 // 'host' => '127.0.0.1',
464 // 'port' => 25,
465 // 'verify_ssl' => false,
466 // 'username' => 'user',
467 // 'password' => 'pass',
468 ];
469 
480 //$CONFIG->debug = 'INFO';
481 
505 //$CONFIG->language_to_locale_mapping = [];
506 
510 //$CONFIG->language_detect_from_browser = true;
511 
519 //$CONFIG->http_request_trusted_proxy_ips = [
520 // 'ip-address-1',
521 // 'ip-address-2',
522 //];
523 
531 //$CONFIG->http_request_trusted_proxy_headers = '';
global $CONFIG
elgg global
Pointer to the global context.
Definition: deprecated.js:9