Try grafana service

This commit is contained in:
Malte Tammena 2021-11-06 16:51:22 +01:00
parent 2eeb1a5fc1
commit 46b95c1e74
2 changed files with 20 additions and 0 deletions

View file

@ -184,6 +184,7 @@
./hardware/netcup-minimal.nix
./modules/nginx-reverse-proxy.nix
./modules/radicale.nix
./modules/grafana.nix
];
};

19
modules/grafana.nix Normal file
View file

@ -0,0 +1,19 @@
{ config, pkgs, ... }:
{
services.grafana = {
enable = true;
domain = "grafana.tammena.rocks";
port = 2342;
addr = "127.0.0.1";
};
services.nginx.virtualHosts.${config.services.grafana.domain} = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:${toString config.services.grafana.port}";
proxyWebsockets = true;
};
};
}