forked from tronghieu/flywheel-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example
129 lines (119 loc) · 3.7 KB
/
config.example
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
117
118
119
120
121
122
123
124
125
126
127
128
129
<?php
return array(
'i18n' => array(
'enable' => true,
'default_fallback' => array('en'),
'default_locale' => 'en-US',
'resource' => array(
'vi-VN' => array()
)
),
'caching' => array(
'__enable__' => true,
'__default__' => 'widget',
'__hash__' => '-8/RsLPePPy54BtNGBm*MqX7=vn8>j6QHJGG~49AN',
'widget' => array(
'storage' => 'Apc',
'group' => 'html'
),
'page_cache' => array(
'storage' => 'Apc',
'group' => 'html'
),
'item' => array(
'storage' => 'Apc',
'group' => 'item'
),
),
/*
* Session
*/
'session' => array(
'storage' => '', // \Flywheel\Session\Storage\File
'name' => '54gdq!#',
'lifetime' => 86400,
//'cookie_domain' => '',
'cookie_exception' => true,
'cookie_basename' => 'HQ1310__',
'cookie_secret' => 'P8(<G4v,?#y_GP2NWn89uI-/bMa/Y.l.kEiRtr9 .9[^1tiz_Z,-]8itVBnyd}DEV',
),
/*
* Config database connection
*/
'database' => array(
'default' => array(
'adapter' => 'mysqli', //sqlite, mysql, mssql, oracle or pgsql
'dsn' => 'mysql:host=your-db-host;dbname=your-db-name',
'db_user' => 'your-db-name',
'db_pass' => 'your-db-pasword',
'cache_prepare' => true,
'slaves' => array(
/*'slave1' => array(
'adapter' => 'mysql',
'weight' => 2,
'dsn' => 'mysql:host=your-db-host;dbname=your-db-name',
'db_user' => 'your-db-name',
'db_pass' => 'your-db-pasword',
),
'slave2' => array(
'adapter' => 'mysql',
'weight' => 2,
'dsn' => 'mysql:host=your-db-host;dbname=your-db-name',
'db_user' => 'your-db-name',
'db_pass' => 'your-db-pasword',
),*/
),
),
'__default__' => 'default'
),
'redis' => array(
'__default__' => 'default',
//config key info
'default' => array(
'dsn' => '{your-redis-host}:{your-redis-port}/{db-index}',
'option' => array(
'timeout' => 30, //connection timeout
'prefix' => 'custom-key-prefix'
),
),
'consumer' => array(
'dsn' => '{your-redis-host}:{your-redis-port}/{db-index}',
),
),
'queue' => array(
'api' => array(
'adapter' => 'redis',
'name' => 'api_background_queue',
'config' => array(
'dsn' => "$host:$port/15", //host:port/database
'auth' => $auth
),
),
'dispatch_event' => array(
'adapter' => 'redis',
'name' => 'dispatch_event_queue',
'config' => array(
'dsn' => "$host:$port/15",
'auth' => $auth
),
),
//repeat dispatch event repeat after 3 minutes
'dispatch_event_3m' => array(
'adapter' => 'redis',
'name' => 'dispatch_event_3m_queue',
'config' => array(
'dsn' => "$host:$port/15",
'auth' => $auth
),
),
//repeat dispatch event repeat after 15 minutes
'dispatch_event_15m' => array(
'adapter' => 'redis',
'name' => 'dispatch_event_15m_queue',
'config' => array(
'dsn' => "$host:$port/15",
'auth' => $auth
),
),
),
);