Files
Carlo Baratto edc8a8b4ed repo autosufficiente: collector server/ (statusd, unit systemd, firewall, install)
Il lato server era rimasto fuori dalla repo. Ora c'e' tutto sotto server/:
collector statusd.py (schema status/1), README con il contratto, regola
nftables LAN+VPN, unit systemd utente con percorsi %h e install.sh per una
macchina nuova.
2026-10-28 09:16:43 +01:00

17 lines
468 B
Desktop File

[Unit]
Description=statusd — API read-only status/1 su :8792 (LAN + VPN)
After=network-online.target statusd-collect.timer
Wants=statusd-collect.timer
[Service]
Type=simple
WorkingDirectory=%h/.local/share/statod
ExecStart=/usr/bin/python3 %h/.local/share/statod/statusd.py serve --file %h/.cache/statusd/status.json --port 8792 --token-file %h/.config/statusd/token
Restart=always
RestartSec=3
NoNewPrivileges=yes
PrivateTmp=yes
[Install]
WantedBy=default.target