forked from alexjustesen/speedtest-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspeedtest.php
More file actions
56 lines (36 loc) · 1.16 KB
/
speedtest.php
File metadata and controls
56 lines (36 loc) · 1.16 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
45
46
47
48
49
50
51
52
53
54
55
56
<?php
use Carbon\Carbon;
return [
'build_date' => Carbon::parse('2025-01-05'),
'build_version' => 'v1.0.3',
/**
* General settings.
*/
'content_width' => env('CONTENT_WIDTH', '7xl'),
'prune_results_older_than' => env('PRUNE_RESULTS_OLDER_THAN', 0),
'public_dashboard' => env('PUBLIC_DASHBOARD', false),
/**
* Polling settings.
*/
'dashboard_polling' => env('DASHBOARD_POLLING', '60s'),
'notification_polling' => env('NOTIFICATION_POLLING', '60s'),
'results_polling' => env('RESULTS_POLLING', null),
/**
* Speedtest settings.
*/
'schedule' => env('SPEEDTEST_SCHEDULE', false),
'servers' => env('SPEEDTEST_SERVERS'),
'blocked_servers' => env('SPEEDTEST_BLOCKED_SERVERS'),
'interface' => env('SPEEDTEST_INTERFACE'),
/**
* IP filtering settings.
*/
'skip_ips' => env('SPEEDTEST_SKIP_IPS', ''),
/**
* Threshold settings.
*/
'threshold_enabled' => env('THRESHOLD_ENABLED', false),
'threshold_download' => env('THRESHOLD_DOWNLOAD', 0),
'threshold_upload' => env('THRESHOLD_UPLOAD', 0),
'threshold_ping' => env('THRESHOLD_PING', 0) ,
];