-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconfig.inc.php
More file actions
42 lines (41 loc) · 1.24 KB
/
config.inc.php
File metadata and controls
42 lines (41 loc) · 1.24 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
<?php
return [
'general' => [
'mtrCmd' => 'mtr',
'timezone' => 'Asia/Taipei',
'category' => '', // Category mark for distinguishing
],
'mtr' => [
'host' => 'google.com',
'period' => 10, // Minute
'count' => 60, // Report-cycles
'tcp' => false, // TCP mode
'port' => 443, // Port number for TCP mode
],
'api' => [
'key' => '', // API key must be the same bewteen agent and collector
'agent' => [
'enabled' => false, // To send MTR data to collector via API Agent (deafult is database)
'reportUrl' => '', // Collector's API URL
],
'collector' => [
'enabled' => false, // To receive MTR data from agent via API
],
],
'database' => [
'host' => 'localhost',
'driver' => 'mysql',
'database' => 'mtr_database',
'username' => '',
'password' => '',
'table' => 'records',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
],
'dashboard' => [
'enabled' => false,
'username' => '',
'password' => '',
'categories' => [''], // Category list for selection
],
];