forked from 17mon/LookingGlass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
42 lines (40 loc) · 1.51 KB
/
config.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
<?php
return array(
'site' => array(
'home' => array( //首页
'name' => '17mon网络工具集', // 必选
'logo' => 'http://s.qdcdn.com/loveapp/dpt/theme/images/logo.png', // 可选,不填写则用 name 替代
'link' => 'http://tool.17mon.cn', // 必选
),
'title' => 'LookingGlass', //站点Title名称
'location' => '中国北京', //站点服务器机房位置
// 'ipv4' => '0.0.0.0', // 配置可选
// 'ipv6' => '2402:4e00::11', // 配置可选
'speedtest' => array( // 下载速度测试 配置可选
'50MB' => 'http://example.com/50MB.test',
'150MB' => 'http://example.com/150MB.test',
'500MB' => 'http://example.com/500MB.test',
),
'rateLimit' => array(
'enable' => TRUE,
'provider' => array(
'class' => 'session',
), // 默认使用session记录
'minute' => 10, // 限速每Ip每分钟请求最多 10 次
),
'commands' => array( // key名称不能修改
'host' => '/usr/bin/host',
'ping' => '/bin/ping',
'traceroute' => '/bin/tracert',
/* IPv6支持尚未实现 */
'ping6' => '/bin/ping6', // IPv6
'traceroute6' => '/bin/tracert6', // IPv6
),
),
'nodes' => array( // 其它监测点 可选配
array(
'name' => 'example.com',
'link' => 'http://tool.17mon.cn',
),
)
);