Try grafana service
This commit is contained in:
parent
2eeb1a5fc1
commit
46b95c1e74
|
@ -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
19
modules/grafana.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue