nixos-config/hosts/x86_64-linux/seraphim/monitoring.nix

18 lines
407 B
Nix
Raw Normal View History

2024-03-30 20:52:03 +01:00
{ config, pkgs, ... }: {
# grafana configuration
services.grafana = {
enable = true;
# domain = "grafana";
port = 2342;
addr = "127.0.0.1";
};
# nginx reverse proxy
services.nginx.virtualHosts.${config.services.grafana.domain} = {
locations."/" = {
proxyPass = "http://127.0.0.1:${toString config.services.grafana.port}";
proxyWebsockets = true;
};
};
}