1
0

hosts/monitoring-3: split host config to multiple files

This commit is contained in:
2023-02-03 22:28:50 +01:00
parent 0a1311252b
commit 6082fb0744
5 changed files with 433 additions and 405 deletions

View File

@@ -0,0 +1,39 @@
{ ... }:
{
services.grafana = {
enable = true;
domain = "grafana.monitoring.clerie.de";
rootUrl = "https://grafana.monitoring.clerie.de";
port = 3001;
addr = "::1";
auth.anonymous.enable = true;
provision = {
enable = true;
datasources.settings.datasources = [
{
type = "prometheus";
name = "Prometheus";
url = "http://[::1]:9090";
isDefault = true;
}
];
dashboards.settings.providers = [
{
options.path = ./dashboards;
}
];
};
};
services.nginx = {
virtualHosts = {
"grafana.monitoring.clerie.de" = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://[::1]:3001/";
};
};
};
}