diff --git a/doc.md b/doc.md index 2a847da..a86edfb 100644 --- a/doc.md +++ b/doc.md @@ -22,6 +22,8 @@ Here's a list of additional environment variables available in this mode: * __`PASSWORD`__: Password to access the stats page. If not set, stats page will not allow accesses. * __`EMAIL`__: Email address for GDPR requests. Must be specified when telemetry is enabled. * __`IPINFO_APIKEY`__: API key for ipinfo.io. Optional, but required if you expect to serve a large number of tests +* __`DISABLE_IPINFO`__: If set to true, ISP info and distance will not be fetched from ipinfo.io. Default: value: `false` +* __`DISTANCE`__: When `DISABLE_IPINFO` is set to false, this specifies how the distance from the server is measured. Can be either `km` for kilometers, `mi` for miles, or an empty string to disable distance measurement. Default value: `km` If telemetry is enabled, a stats page will be available at `http://your.server/results/stats.php`, but a password must be specified. @@ -92,6 +94,8 @@ Here's a list of additional environment variables available in this mode: * __`REDACT_IP_ADDRESSES`__: When set to true with telemetry enabled, IP addresses and hostnames are redacted from the collected telemetry, for better privacy. Default value: `false` * __`PASSWORD`__: Password to access the stats page. If not set, stats page will not allow accesses. * __`EMAIL`__: Email address for GDPR requests. Must be specified when telemetry is enabled. +* __`DISABLE_IPINFO`__: If set to true, ISP info and distance will not be fetched from ipinfo.io. Default: value: `false` +* __`DISTANCE`__: When `DISABLE_IPINFO` is set to false, this specifies how the distance from the server is measured. Can be either `km` for kilometers, `mi` for miles, or an empty string to disable distance measurement. Default value: `km` ###### Example This command starts LibreSpeed in frontend mode, with a given `servers.json` file, and with telemetry, ID obfuscation, and a stats password: diff --git a/docker/frontend.php b/docker/frontend.php index 95d14d4..a5ff850 100644 --- a/docker/frontend.php +++ b/docker/frontend.php @@ -16,6 +16,12 @@ var s=new Speedtest(); //create speedtest object s.setParameter("telemetry_level","basic"); + +s.setParameter("getIp_ispInfo","false"); + + +s.setParameter("getIp_ispInfo_distance",""); + s.addTestPoints(SPEEDTEST_SERVERS); //add list of servers //SERVER AUTO SELECTION diff --git a/docker/standalone.php b/docker/standalone.php index ed4e4a4..8d98ada 100644 --- a/docker/standalone.php +++ b/docker/standalone.php @@ -12,6 +12,12 @@ var s=new Speedtest(); //create speedtest object s.setParameter("telemetry_level","basic"); + +s.setParameter("getIp_ispInfo","false"); + + +s.setParameter("getIp_ispInfo_distance",""); + var meterBk=/Trident.*rv:(\d+\.\d+)/i.test(navigator.userAgent)?"#EAEAEA":"#80808040"; var dlColor="#6060AA",