some stuff

This commit is contained in:
xunuwu 2024-05-21 22:15:08 +02:00
parent cd8343c0c4
commit d2fd9fda8a
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
26 changed files with 377 additions and 83 deletions

View file

@ -4,7 +4,17 @@
config,
...
}: {
networking.firewall.allowedTCPPorts = [4444];
networking.firewall.allowedTCPPorts = [
4444
];
systemd.services."static-web-server".after = ["brawlstats.timer"];
services.static-web-server = {
enable = true;
root = "/var/lib/brawlstats";
listen = "[::]:3434";
};
systemd.sockets."brawlstats-web" = {
wantedBy = ["sockets.target"];
@ -31,7 +41,7 @@
set xlabel 'Time'
set ylabel 'Trophies'
set term svg
plot "/dev/stdin" using 1:2 with linespoints title 'Data'
plot "/dev/stdin" using 1:2 with linespoints notitle
''} # 2>/dev/null
}