Goals
The goals of this tutorial are:
SSL / HTTPS everywhere. All services are accessible over HTTPS with a valid certificate, eliminating browser warnings. This can be achieved with a Let’s Encrypt certificate or a commercial one.
A dedicated subdomain name per service. Each service is reachable by its own hostname, such as grafana.example.com, rather than by a port number such as nas.example.com:3000. Services can be organized as subdomains of the primary domain, or under a dedicated internal subdomain such as nas.internal.example.com.
Once completed, the expected results are:
Browsing without ads on the whole network. With Pi-hole, the NAS becomes the DNS server of the network, and blocks ads, trackers and known malicious sites for every device: computers, phones, tablets, smart TVs and game consoles, without installing anything on them. Local hostnames such as grafana.example.com are also resolved by Pi-hole.
Monitoring of the NAS and the network. With Prometheus, the measurements of the NAS and other devices, such as CPU, memory, disk space and network traffic, are collected and kept over time. Grafana displays them as live dashboards, available from any browser, to spot a disk filling up or an unusual network activity at a glance.