configuration.nix/hosts/rico2/services/apps/grafana.nix

29 lines
543 B
Nix
Raw Normal View History

2024-10-27 18:37:05 +05:30
_:
2024-11-17 14:06:41 +05:30
let domainName = "grafana.labs.adtya.xyz"; in {
2024-10-27 18:37:05 +05:30
services = {
caddy = {
virtualHosts."${domainName}" = {
extraConfig = ''
reverse_proxy 127.0.0.1:9091
'';
};
};
grafana = {
enable = true;
settings = {
server = {
domain = domainName;
http_addr = "127.0.0.1";
http_port = 9091;
};
analytics = {
enable = false;
};
panels = {
disable_sanitize_html = true;
};
};
};
};
}