Sign inSign up

bwmoran/speedtest-app

By bwmoran

•Updated 8 months ago

Self-hosted web service and application to test internet speed via Speedtest-CLI

Image
0

10K+

bwmoran/speedtest-app repository overview

⁠speedtest-app Docker Pulls

An internet speed test web application leveraging either Ookla Speedtest-CLI (https://www.speedtest.net/apps/cli⁠) or iperf3 (https://software.es.net/iperf/⁠). Node.js service with React frontend using Material-UI.

Example use-case: test "wired speed" of a computer connected via hard-wired ethernet from any device on your network.

⁠docker install

  • docker run -d -p 5000:5000 --name speedtest-app bwmoran/speedtest-app
  • application should be running at http://localhost:5000⁠
⁠old-fashioned install

dependencies

  • Latest stable Node.js runtime release with npm
  • Git
  • Speedtest-CLI (https://www.speedtest.net/apps/cli⁠)
    • note: if using Windows, you need to add the directory that contains speedtest.exe to system Path, so that it can be run globally. (for example: C:\Projects\ookla-speedtest-1.0.0-win64\)
  • iperf3
    • note: if using Windows, you need to add the directory that contains iperf3.exe to system Path, so that it can be run globally. (for example: C:\Projects\iperf-3.1.3-win64\)

installation

  • clone repository
    • git clone https://github.com/moranbw/speedtest-app.git
  • navigate to application directory
  • install dependencies and build client
    • npm run deploy
  • run application
    • npm run start
  • application should be running at http://localhost:5000⁠
⁠proxy example

set environment variable PROXY_PATH

  • docker run -d -p 5000:5000 -e PROXY_PATH="speedtest" --name speedtest-app bwmoran/speedtest-app

nginx

location /speedtest/ {
    proxy_pass http://your_ip_or_host:5000;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
}
⁠demo

Screenshot

⁠other acknowledgements

Tag summary

Content type

Image

Digest

sha256:ed14535ed…

Size

87.4 MB

Last updated

8 months ago

docker pull bwmoran/speedtest-app