-
Notifications
You must be signed in to change notification settings - Fork 96
/
config.dist.php
57 lines (56 loc) · 1.64 KB
/
config.dist.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
$config = array(
'default_controller' => 'Welcome',
'default_action' => 'Index',
'production' => true,
'default_layout' => 'layout',
'timezone' => 'Europe/Amsterdam',
'auth' => array(
'username' => 'admin',
'password' => password_hash('admin', PASSWORD_DEFAULT)
),
'log' => array(
'driver' => 'file',
'threshold' => 1, /* 0: Disable Logging 1: Error 2: Notice 3: Info 4: Warning 5: Debug */
'file' => array(
'directory' => 'logs'
)
),
'database' => array(
'driver' => 'redis',
'mysql' => array(
'host' => 'localhost',
'username' => 'root',
'password' => 'root'
),
'redis' => array(
array(
'host' => 'localhost',
'port' => '6379',
'password' => null,
'database' => 0,
'max_databases' => 16, /* Manual configuration of max databases for Redis < 2.6 */
'stats' => array(
'enable' => 1,
'database' => 0,
),
'dbNames' => array( /* Name databases. key should be database id and value is the name */
),
),
),
),
'session' => array(
'lifetime' => 7200,
'gc_probability' => 2,
'name' => 'phpredminsession'
),
'gearman' => array(
'host' => '127.0.0.1',
'port' => 4730
),
'terminal' => array(
'enable' => true,
'history' => 200
)
);
return $config;