You can use Nginx to serve the HTML report (index.html) either locally for quick access or online for remote monitoring.
Install Start and Enable Nginx :
sudo apt update
sudo apt install nginx
sudo systemctl start nginx
sudo systemctl enable nginx
Create and configure conf file of your site :
sudo touch /etc/nginx/sites-available/chrony-network-stats
sudo nano /etc/nginx/sites-available/chrony-network-stats
server {
listen 127.0.0.1:80;
root /var/www/chrony-network-stats;
index index.html;
location / {
try_files $uri $uri/ =404;
}
}
Enable the site and reload nginx :
sudo ln -s /etc/nginx/sites-available/chrony-network-stats /etc/nginx/sites-enabled/chrony-network-stats
sudo nginx -t
sudo systemctl reload nginx
Access to your website
Go to http://127.0.0.1 or http://localhost in your web browser
⚠️ The instructions are meant only to help you quickly serve the HTML report online. If you're planning to expose the report to the internet, you should follow proper best practices for :
Same like localy but :
sudo nano /etc/nginx/sites-available/chrony-network-stats
server {
listen 80;
server_name HERE; # HERE PLACE YOUR PUBLIC IP OR DOMAIN NAME
root /var/www/chrony-network-stats;
index index.html;
location / {
try_files $uri $uri/ =404;
}
}