Initial commit: stats-gateway gRPC service + dashboard + CLI

This commit is contained in:
2026-05-05 21:04:32 +05:00
commit 4059e94759
44 changed files with 2513 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
[Unit]
Description=Generate stats snapshot.json for stats-site dashboard
After=stats-gateway.service
Wants=stats-gateway.service
[Service]
Type=oneshot
User=stats
Group=www-data
ExecStart=/usr/local/bin/stats-snapshot --db /var/lib/stats-gateway/stats.db --out /var/www/stats-site/data/snapshot.json
StandardOutput=journal
StandardError=journal
# Need write access to /var/www/stats-site/data
ReadWritePaths=/var/www/stats-site/data
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
PrivateTmp=true