Repository navigation
Expand file tree
/
Copy pathconf_default.php
More file actions
executable file
·128 lines (111 loc) · 4.02 KB
/
Copy pathconf_default.php
File metadata and controls
executable file
·128 lines (111 loc) · 4.02 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
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
<?php
$conf['debug'] = 0;
# IMPORTANT
# Do not verify SSL peers. I am setting this to false since for most of my remote
# nodes I use self-signed certificates. This does expose me to MITM (man in the middle attack)
# however I am willing to accept that risk. Set this to true if you want to make verify
# peer certs
$conf['ssl_peer_verify'] = false;
# Try to detect CDNs used in URL Test
$conf['cdn_detection'] = false;
# Show timing for requests in URL Test
$conf['show_url_timing_bar'] = false;
# Allow proxying requests in URL check
$conf['allow_proxy_for_url_check'] = false;
# Set CORS headers. If not set they are not set
#$conf["cors_headers_acao"] = "access-control-allow-origin: *";
# Prerender server https://github.com/prerender/prerender
# If you want to use HARrr server instead of PhantomJS uncomment below. Overrides any PhantomJS settings
#$conf['prerender_server_url'] = "http://<full_path>/har";
# For IP to AS resolution use local file-based cache. If following defined use the file as the cache file
#$conf['cache_file'] = "/var/www/cache/cache.json";
# Cache time
#$conf['cache_time'] = 8640000;
if ( getenv('HARPOON_URL') !== false ) {
$conf['harpoon_server_url'] = getenv('HARPOON_URL');
}
# Lighthouse audits requested from har-poon after the waterfall has loaded (optional, runs
# asynchronously). Any Lighthouse audit id works; metric audits become tiles, everything else
# is rendered as an opportunity/diagnostic table. See
# https://github.com/doramatadora/har-poon#a-list-of-lighthouse-performance-audits-ok-sure
$conf['lighthouse_audits'] = array(
# Core metrics
"first-contentful-paint",
"largest-contentful-paint",
"speed-index",
"total-blocking-time",
"cumulative-layout-shift",
"interactive",
"server-response-time",
"largest-contentful-paint-element",
# Images
"uses-responsive-images",
"modern-image-formats",
"uses-optimized-images",
"offscreen-images",
"unsized-images",
"prioritize-lcp-image",
# Delivery
"render-blocking-resources",
"uses-text-compression",
"uses-long-cache-ttl",
"redirects",
"uses-rel-preconnect",
"font-display",
# Code weight
"unused-css-rules",
"unused-javascript",
"unminified-css",
"unminified-javascript",
"legacy-javascript",
"duplicated-javascript",
# Main thread and layout
"third-party-summary",
"bootup-time",
"dom-size",
"layout-shifts",
"errors-in-console",
);
# These are the headers that can be used in the URL test. If you are finding you are using the
# the same headers all the time you can set them here to default to a value
# For example Accept-Language:es || User-Agent:Mozilla
$conf['arbitrary_headers'] = "";
$conf['allowed_dns_query_types'] = array (
"A",
"AAAA",
"CNAME",
"MX",
"SOA",
"TXT",
"NS",
"CAA"
);
$conf['allowed_http_methods'] = array(
"GET",
"POST",
"HEAD",
"DELETE",
"OPTIONS",
"PURGE",
"PATCH",
"PUT"
);
# Should ping/mtr be enabled. Make sure paths to ping and mtr are correct. Otherwise
# the tab will be disabled
$conf['pingmtr_enabled'] = true;
$conf['ping_bin'] = "/bin/ping";
$conf['ping6_bin'] = "/bin/ping6";
$conf['mtr_bin'] = "/usr/bin/mtr";
#
if ( !( is_executable($conf['mtr_bin']) && ! is_executable($conf['ping_bin'] = "/bin/ping") ) ) {
$conf['pingmtr_enabled'] = false;
}
# Should NMAP be available
$conf['nmap_bin'] = "/usr/bin/nmap";
$conf['jquery_js_path'] = "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js";
$conf['jqueryui_js_path'] = "https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.14.1/jquery-ui.min.js";
$conf['jqueryui_css_path'] = "https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.14.1/themes/flick/jquery-ui.min.css";
$conf['jquery_tablesorter'] = "https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.25.7/js/jquery.tablesorter.min.js";
# Read README on what are remotes
#$conf['remotes'][] = array("name" => "US", "provider" => "http_get", "base_url" => "http://myurl.usa/fantomtest/");
#$conf['remotes'][] = array("name" => "Europe", "provider" => "http_get", "base_url" => "http://myurl.eu/fantomtest/");