diff --git a/seed/speedtest-rs/applicationservice.yml b/seed/speedtest-rs/applicationservice.yml new file mode 100644 index 00000000..e04cdf5f --- /dev/null +++ b/seed/speedtest-rs/applicationservice.yml @@ -0,0 +1,5 @@ +format: '0.1' +description: Speedtest-rs +depends: + - base-fedora-36 + - reverse-proxy-client diff --git a/seed/speedtest-rs/dictionaries/40_speedtest-rs.xml b/seed/speedtest-rs/dictionaries/40_speedtest-rs.xml new file mode 100644 index 00000000..39252171 --- /dev/null +++ b/seed/speedtest-rs/dictionaries/40_speedtest-rs.xml @@ -0,0 +1,18 @@ + + + + + + /etc/speedtest-rs/config.env + /var/lib/speedtest-rs/speedtest-rs.css + /var/lib/speedtest-rs/logo.png + + + + + + + + diff --git a/seed/speedtest-rs/manual/image/postinstall/index.html b/seed/speedtest-rs/manual/image/postinstall/index.html new file mode 100644 index 00000000..a4827cc2 --- /dev/null +++ b/seed/speedtest-rs/manual/image/postinstall/index.html @@ -0,0 +1,391 @@ + + + + + + + + + + +Débit + + +Logo +

Débit

+
+ +
+
+
+
Ping
+ +
+
ms
+
+
+
Latence
+ +
+
ms
+
+
+
+
+
Descendant
+ +
+
Mbps
+
+
+
Montant
+ +
+
Mbps
+
+
+
+
+ +
+ +
+ Source code +
+ + + + diff --git a/seed/speedtest-rs/manual/image/postinstall/speedtest-rs.sh b/seed/speedtest-rs/manual/image/postinstall/speedtest-rs.sh new file mode 100644 index 00000000..8962f59e --- /dev/null +++ b/seed/speedtest-rs/manual/image/postinstall/speedtest-rs.sh @@ -0,0 +1,4 @@ +rm "$IMAGE_NAME_RISOTTO_IMAGE_DIR/usr/share/speedtest-rs/index.html" +cp "$IMAGE_DIR_RECIPIENT_IMAGE/postinstall/index.html" "$IMAGE_NAME_RISOTTO_IMAGE_DIR/usr/share/speedtest-rs/index.html" +ln -s ../../../var/lib/speedtest-rs/speedtest-rs.css "$IMAGE_NAME_RISOTTO_IMAGE_DIR/usr/share/speedtest-rs/" +ln -s ../../../var/lib/speedtest-rs/logo.png "$IMAGE_NAME_RISOTTO_IMAGE_DIR/usr/share/speedtest-rs/" diff --git a/seed/speedtest-rs/manual/image/preinstall/speedtest-rs.sh b/seed/speedtest-rs/manual/image/preinstall/speedtest-rs.sh new file mode 100644 index 00000000..ad0539d4 --- /dev/null +++ b/seed/speedtest-rs/manual/image/preinstall/speedtest-rs.sh @@ -0,0 +1,2 @@ +PKG="$PKG speedtest-rs" +COPR="https://copr.fedorainfracloud.org/coprs/gnunux/speedtest-rs/repo/fedora-36/gnunux-speedtest-rs-fedora-36.repo" diff --git a/seed/speedtest-rs/templates/config.env b/seed/speedtest-rs/templates/config.env new file mode 100644 index 00000000..14e3380e --- /dev/null +++ b/seed/speedtest-rs/templates/config.env @@ -0,0 +1,20 @@ +# server listening to +SPEEDTEST_ADDRESS=0.0.0.0 +SPEEDTEST_PORT=443 + +# certificats and public key +# those to option are mandatory if you want tu active TLS support +SPEEDTEST_CERT=/etc/pki/tls/certs/revprox.crt +SPEEDTEST_KEY=/etc/pki/tls/private/revprox.key +# optional CA to validate client +SPEEDTEST_CA_CERT=%%revprox_client_ca_file + +# Directory with HTML/js files +SPEEDTEST_DIR=/usr/share/speedtest-rs/ + +# https://ipinfo.io/ token to use this service +#IPINFO_TOKEN= +# to get distance between client and server we need to know the server coordonate +#SPEEDTEST_LATITUDE=0.0 +#SPEEDTEST_LONGITUDE=0.0 + diff --git a/seed/speedtest-rs/templates/logo.png b/seed/speedtest-rs/templates/logo.png new file mode 100644 index 00000000..55c89083 Binary files /dev/null and b/seed/speedtest-rs/templates/logo.png differ diff --git a/seed/speedtest-rs/templates/speedtest-rs.css b/seed/speedtest-rs/templates/speedtest-rs.css new file mode 100644 index 00000000..f1618b35 --- /dev/null +++ b/seed/speedtest-rs/templates/speedtest-rs.css @@ -0,0 +1,15 @@ +#startStopBtn{ + color:#FFFFFF; + background-color:#91c644; + border:0.15em solid #91c644; + margin-bottom:1em; +} +#startStopBtn:before{ + content:"Démarrer"; +} +#startStopBtn.running:before{ + content:"Annuler"; +} +div.testArea{ + margin: 1em; +} diff --git a/seed/speedtest-rs/templates/speedtest-rs.service b/seed/speedtest-rs/templates/speedtest-rs.service new file mode 100644 index 00000000..b32d9f97 --- /dev/null +++ b/seed/speedtest-rs/templates/speedtest-rs.service @@ -0,0 +1,12 @@ +[Unit] +After=risotto.target + +[Service] +PrivateDevices=false +ProtectHome=false +ProtectSystem=false +LimitNOFILE= +LimitNPROC= +WorkingDirectory=/srv/vaultwarden +ReadWriteDirectories= +ReadWriteDirectories=