helm/modules/monitoring-helix.nix
Anish Lakhwara 34e82ad7a9 missed some
2021-01-09 10:28:14 +00:00

18 lines
420 B
Nix

{ config, pkgs, ... }: {
# grafana configuration
services.grafana = {
enable = true;
domain = "grafana.sealight.xyz";
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;
};
};
}