Compile from source
git clone github.com/librespeed/speedtest-go
cd speedtest-go
go build -ldflags "-w -s" -trimpath -o speedtest main.go
Setting
将settings.toml
文件中的assets_path
设置为web/assets
目录(也可以将assets
目录和可执行文件移动到其他位置)
Modify
- 生成图片的水印定义在
results/telemetry.go
中的watermark
变量 - 主页标题在
web/assets/index.html
文件中。