Add server status monitoring endpoint

- Add status.service.js with CPU, RAM, Disk, Backend stats
- RAM calculation matches htop (reads /proc/meminfo)
- Includes uploads folder size, DB table count
- Returns both system and backend (process) uptime

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
richardtekula
2025-12-05 09:00:31 +01:00
parent eb5582feb6
commit 03b7a215bb
3 changed files with 211 additions and 0 deletions

View File

@@ -50,4 +50,11 @@ router.delete(
adminController.deleteUser
);
/**
* Server status
*/
// Server status (CPU, RAM, Disk, Network, Uptime)
router.get('/server-status', adminController.getServerStatus);
export default router;