nixos/services/grafana.nix

16 lines
347 B
Nix

{ ... }: {
imports = [ ./caddy.nix ];
services.grafana = {
enable = true;
settings = {
server = {
http_addr = "127.0.0.1";
http_port = 3000;
domain = "grafana.xenia.me.uk";
};
};
};
services.caddy.virtualHosts."grafana.xenia.me.uk".extraConfig =
"reverse_proxy http://localhost:3000";
}