nixos-config/config/services/grafana.nix

24 lines
440 B
Nix
Raw Normal View History

2022-01-14 21:05:57 +01:00
{
2022-06-12 16:39:15 +01:00
lib,
config,
pkgs,
...
2023-02-02 21:34:19 +01:00
}: {
2022-01-14 21:05:57 +01:00
services.grafana = {
enable = true;
domain = "grafana.int.chir.rs";
port = 2342;
addr = "127.0.0.1";
};
2022-08-26 16:28:14 +01:00
services.caddy.virtualHosts.${config.services.grafana.domain} = {
useACMEHost = "int.chir.rs";
2022-12-30 14:03:57 +01:00
logFormat = pkgs.lib.mkForce "";
2022-08-26 16:28:14 +01:00
extraConfig = ''
import baseConfig
reverse_proxy http://127.0.0.1:${toString config.services.grafana.port}
'';
2022-01-14 21:05:57 +01:00
};
}