15 lines
405 B
Nix
15 lines
405 B
Nix
{
|
|
imports = [
|
|
./matrix-hook.nix
|
|
./prometheus.nix
|
|
./telegraf.nix
|
|
];
|
|
|
|
services.nginx.virtualHosts."monitoring.nix-community.org" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations."/".return = "302 https://nix-community.org/monitoring";
|
|
locations."/alertmanager/".proxyPass = "http://localhost:9093";
|
|
locations."/prometheus/".proxyPass = "http://localhost:9090";
|
|
};
|
|
}
|