-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
executable file
·44 lines (43 loc) · 1.06 KB
/
config.php
File metadata and controls
executable file
·44 lines (43 loc) · 1.06 KB
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
<?php
return array(
'servers' => array(
array(
'hostname' => '192.168.1.110',
'port' => '11213',
'weight' => '1',
)
),
'rules' => array(
'act1' => array(
'rule1' => array(
'field' => 'ip',
'type' => 'active',
'period' => 30,//单位秒
'limit_num' => 3,
'white' => array(
'192.168.1.1',
),
),
'rule2' => array(
'field' => 'id',
'type' => 'fixed',
'period' => 3000,
'limit_num' => 30,
'white' => array(
1, 2, 3,
),
),
),
'act2' => array(
'rule1' => array(
'field' => 'id',
'type' => 'fixed',
'period' => 600,
'limit_num' => 6,
'white' => array(
1, 2, 3
),
),
),
)
);