BSD Ports

net/librespeed-go 1.1.3 DragonFly

GO backend for LibreSpeed

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
LGPL3
Categories
net, www
Package size
3554.8 KiB, 10884.7 KiB installed

Description

LibreSpeed-go is a very lightweight speed test. Is is implemented in JavaScript, using XMLHttpRequest and Web Workers. This port uses GO as backend for hosting. And this in comparison to www/librespeed where PHP and a web server are required.

WWW: https://github.com/librespeed/speedtest-go

In the other systems

SystemPortVersion
DragonFlynet/librespeed-go1.1.3
FreeBSDnet/librespeed-go1.1.5_45
HardenedBSDnet/librespeed-go1.1.5_43
GhostBSDnet/librespeed-go1.1.5_43

Install

Binary package:

pkg install librespeed-go

From DPorts:

cd /usr/dports/net/librespeed-go && make install clean

Dependencies

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

Copy your preferred example from /usr/local/share/examples/librespeed-go to
/usr/local/www/librespeed-go/index.html.
To use the backend feature, be sure to copy a -full example.
	cd /usr/local/share/examples/librespeed-go
	cp -a example-singleServer-full.html /usr/local/www/librespeed-go/index.html

To automatically start librespeed-go at boot time:
        sysrc librespeed_go_enable="YES"

To start the service directly:
        service librespeed-go start

By default, librespeed-go daemon runs under user privilege so it cannot listen
on the standard http port 80/tcp. You can expose 80/tcp to the daemon using
packet forwarding by ipfw like below (recommended):
	ipfw add fwd 127.0.0.1,8989 tcp from any to me 80 in

Alternatively, you can configure the daemon to listen on 80/tcp if it is
running with root privileges. 
	sysrc librespeed_go_user=root

If you are uninstalling librespeed-go permanently, and you do *NOT* want to
retain the speedtest database and other your configured landing page, you
should manually remove folliwing directories:
    - /var/db/librespeed-go
    - /usr/local/www/librespeed-go