Lucas

Project — bylucas-monitoring

A Private Dashboard to Watch and Repair My Server

Live status, logs, restarts and TLS certificates for every hosted project.

Image 1
Image 2
1 / 2
01

In plain English

When you host several websites on your own server, you need a way to know if everything is running fine. This dashboard shows at a glance how much memory and disk the server uses, which websites are up or down, and the latest warnings or errors for each of them. If something breaks, I can restart a website or fix its security certificate in one click, without opening a terminal.

02

For the curious

The dashboard is a Next.js 16 server application whose API routes act as a thin layer over Linux commands: systemctl for service status and memory, journalctl for logs, docker inspect for containers, df and /proc/meminfo for host metrics, and certbot for certificates. Live logs are streamed to the browser with Server-Sent Events from a journalctl -f process that is killed as soon as the client disconnects. It has no database: the list of services comes from JSON manifests generated by Ansible. Security is layered: nginx basic auth and rate limiting in front, commands run with execFile (no shell, so no injection), every service name is checked against the manifests, and root actions are limited to a dedicated sudoers allow-list.

A little summary :

A small but practical tool that closes the loop of my self-hosting platform: after deploying, I can also observe and fix. Building it was a good exercise in safely exposing system administration through a web interface, with a strong focus on least privilege and input validation.