infra/nixos/hosts/silver/services/grafana.nix

30 lines
495 B
Nix
Raw Permalink Normal View History

2024-12-14 18:24:51 -06:00
{...}: let
dom = "graf.min.rip";
httpIntPort = 14050;
in {
services.nginx.virtualHosts.${dom} = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:${toString httpIntPort}";
};
};
services.grafana = {
enable = true;
settings = {
server = {
http_addr = "127.0.0.1";
http_port = httpIntPort;
enable_gzip = true;
enforce_domain = true;
domain = dom;
};
};
};
}