speedtest-rs-rpm/speedtest-rs.service

21 lines
771 B
SYSTEMD
Raw Normal View History

2022-10-15 18:48:56 +02:00
[Unit]
Description=Speedtest-rs Server
Documentation=https://cloud.silique.fr/gitea/Silique/speedtest-rs
After=network.target
[Service]
User=speedtest
Group=speedtest
Environment=LATITUDE=0.0 LONGITUDE=0.0 SPEEDTEST_DIR=/var/lib/speedtest-rs SPEEDTEST_PORT=80
EnvironmentFile=-/etc/speedtest-rs/config.sh
ExecStart=/usr/bin/speedtest-rs --ip=0.0.0.0 --port=${SPEEDTEST_PORT} --assets=${SPEEDTEST_DIR} --ipinfo_token=${IPINFO_TOKEN} --latitude=${LATITUDE} --longitude=${LONGITUDE} --cert=${SPEEDTEST_CERT} --key=${SPEEDTEST_KEY} --ca_cert=${SPEEDTEST_CA_CERT}
PrivateTmp=true
PrivateDevices=true
ProtectHome=true
ProtectSystem=strict
# Allow speedtest-rs to bind ports in the range of 0-1024
AmbientCapabilities=CAP_NET_BIND_SERVICE
[Install]
WantedBy=multi-user.target