-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig-example.php
116 lines (114 loc) · 2.24 KB
/
config-example.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?php
/**
* @author Jared King <[email protected]>
*
* @link http://jaredtking.com
*
* @version 1.0.0
*
* @copyright 2015 Jared King
* @license MIT
*/
$modules = include 'config/modules.php';
$routes = include 'config/routes.php';
$cron = include 'config/cron.php';
$statistics = include 'config/statistics.php';
return [
'site' => [
'title' => 'Infuse Framework',
'email' => '[email protected]',
'production-level' => false,
'host-name' => 'example.com',
'ssl-enabled' => false,
'salt' => 'replacewithrandomstring',
'time-zone' => 'America/Chicago',
'language' => 'en',
],
'logger' => [
'enabled' => true,
],
'admin' => [
'index' => 'statistics',
],
'database' => [
'type' => 'mysql',
'host' => 'localhost',
'port' => 3306,
'name' => 'mydb',
'user' => 'root',
'password' => '',
'charset' => 'utf8',
],
'views' => [
'engine' => 'smarty',
],
'models' => [
'cache' => [
'strategies' => [
// 'redis',
// 'memcache',
'local',
],
'prefix' => 'infuse:',
'expires' => 86400, // 1 day
],
],
'email' => [
'from_email' => '[email protected]',
'from_name' => 'Infuse Framework',
'type' => 'nop',
// For SMTP use:
// 'type' => 'smtp'
// 'username' => 'username',
// 'password' => 'password',
// 'port' => 25,
// 'host' => 'smtp.example.com',
],
// For redis sessions use:
/*
'sessions' => [
'enabled' => true,
'adapter' => 'redis',
'lifetime' => 86400,
'prefix' => 'infuse:'
],
*/
'sessions' => [
'enabled' => true,
'adapter' => 'database',
'lifetime' => 86400,
],
'queue' => [
'type' => 'synchronous',
'queues' => [
'emails',
],
'listeners' => [
'emails' => [
[ 'email\\Controller', 'processEmail' ], ],
],
],
'assets' => [
'base_url' => '',
],
/*
'redis' => [
'scheme' => 'tcp',
'host' => '127.0.0.1',
'password' => 'notused',
'port' => 6379
],
*/
/*
'memcache' => [
'enabled' => true,
'host' => '127.0.0.1',
'port' => 11211,
'prefix' => 'infuse:',
],
*/
'modules' => $modules,
'routes' => $routes,
'cron' => $cron,
'statistics' => $statistics,
];