mirror of
https://github.com/librespeed/speedtest.git
synced 2026-05-13 16:26:38 +00:00
Page:
No backend
Pages
Alternative backends
Browser support
CentOS 8 installation guide
Contributing
Home
Implementation details
Installation (Go)
Installation (Node.js)
Installation (PHP)
Installation (PHP with Docker)
Installation
Making a custom front end
Multiple test points (PHP)
Nginx vHost for PHP version
No backend
Reverse proxy with Apache
Reverse proxy with Nginx
Troubleshooting, common problems, known limitations
Using PM2 to keep the Node Server running
Using prebuilt NodeJS Binaries
backend files
results files
speedtest.js
speedtest_worker.js
No results
1
No backend
Federico Dossena edited this page 2019-06-30 07:46:28 +02:00
The speedtest can run, albeit with limited functionality, using only a web server as backend, with no PHP or other server-side scripting.
You will be able to run the download and upload test, but no IP, ISP and distance detection, no telemetry and results sharing, and only a single point of test.
To do this, you will need:
- A replacement for
garbage.php: a large incompressible file, like this. We'll call thisbackend/garbage.dat - A replacement for
empty.php: an empty file will do. We'll call thisbackend/empty.dat
Now you need to configure the test to use them. Look for s=new Speedtest() and right below it, put the following:
s.setParameter("url_dl","backend/garbage.dat");
s.setParameter("url_ul","backend/empty.dat");
s.setParameter("url_ping","backend/empty.dat");
s.setParameter("test_order","P_D_U");
This will point to our static files and set the test to only do ping/jitter, download and uplod tests.