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.
17 lines
468 B
Desktop File
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
|