Elgg  Version 5.1
settings.example.php
Go to the documentation of this file.
1 <?php
13 date_default_timezone_set('{{timezone}}');
14 
15 global $CONFIG;
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->{'X-Sendfile-Type'} = '';
240 
248 //$CONFIG->{'X-Accel-Mapping'} = '';
249 
268 // get the default parameters from php.ini
269 //$CONFIG->cookies['session'] = session_get_cookie_params();
270 //$CONFIG->cookies['session']['name'] = "Elgg";
271 // optionally overwrite the defaults from php.ini below
272 //$CONFIG->cookies['session']['path'] = "/";
273 //$CONFIG->cookies['session']['domain'] = "";
274 //$CONFIG->cookies['session']['secure'] = false;
275 //$CONFIG->cookies['session']['httponly'] = false;
276 //$CONFIG->cookies['session']['samesite'] = ''; // 'Strict' or 'Lax'
277 
278 // extended session cookie
279 //$CONFIG->cookies['remember_me'] = session_get_cookie_params();
280 //$CONFIG->cookies['remember_me']['name'] = "elggperm";
281 //$CONFIG->cookies['remember_me']['expire'] = strtotime("+30 days");
282 // optionally overwrite the defaults from php.ini below
283 //$CONFIG->cookies['remember_me']['path'] = "/";
284 //$CONFIG->cookies['remember_me']['domain'] = "";
285 //$CONFIG->cookies['remember_me']['secure'] = false;
286 //$CONFIG->cookies['remember_me']['httponly'] = false;
287 //$CONFIG->cookies['remember_me']['samesite'] = ''; // 'Strict' or 'Lax'
288 
298 $CONFIG->db_disable_query_cache = false;
299 
311 $CONFIG->auto_disable_plugins = true;
312 
319 //$CONFIG->class_loader_verify_file_existence = false;
320 
336 $CONFIG->exception_include = '';
337 
342 //if (isset($_REQUEST['__some_secret__'])) {
343 //
344 // // send profiling data to the JS console?
345 // $CONFIG->enable_profiling = true;
346 //
347 // // profile all queries? A page with a ton of queries could eat up memory.
348 // $CONFIG->profiling_sql = false;
349 //
350 // // in the list, don't include times that don't contribute at least this much to the
351 // // total time captured. .1% by default
352 // $CONFIG->profiling_minimum_percentage = .1;
353 //}
354 
363 $CONFIG->action_time_limit = 120;
364 
373 $CONFIG->allow_phpinfo = false;
374 
384 //$CONFIG->image_processor = 'imagick';
385 
392 //$CONFIG->webp_enabled = false;
393 
401 //$CONFIG->email_subject_limit = 998;
402 
412 //$CONFIG->emailer_transport = 'sendmail';
413 
417 //$CONFIG->emailer_sendmail_settings = '';
418 
426 //$CONFIG->emailer_smtp_settings = array(
427 // 'name' => 'localhost.localdomain',
428 // 'host' => '127.0.0.1',
429 // 'port' => 25,
430 // 'connection_class' => 'login',
431 // 'connection_config' => [
432 // 'username' => 'user',
433 // 'password' => 'pass',
434 // 'ssl' => '', // OPTIONAL (tls or ssl)
435 // 'port' => '', // OPTIONAL (Non-SSL default 25, SSL default 465, TLS default 587)
436 // 'use_complete_quit' => '', // OPTIONAL
437 // ],
438 //);
439 
449 //$CONFIG->notifications_queue_delay = 180;
450 
456 $CONFIG->proxy = [
457 // 'host' => '127.0.0.1',
458 // 'port' => 25,
459 // 'verify_ssl' => false,
460 // 'username' => 'user',
461 // 'password' => 'pass',
462 ];
463 
474 //$CONFIG->debug = 'INFO';
475 
499 //$CONFIG->language_to_locale_mapping = [];
500 
504 //$CONFIG->language_detect_from_browser = true;
505 
513 //$CONFIG->http_request_trusted_proxy_ips = [
514 // 'ip-address-1',
515 // 'ip-address-2',
516 //];
517 
525 //$CONFIG->http_request_trusted_proxy_headers = '';
global $CONFIG