configuration.nix/hosts/rico1/services/apps/grafana.nix
2024-10-27 23:56:51 +05:30

34 lines
689 B
Nix

_:
let
inherit (import ../../../shared/caddy-helpers.nix) logFormat tlsAcmeDnsChallenge;
domainName = "grafana.labs.adtya.xyz";
in
{
services = {
caddy = {
virtualHosts."${domainName}" = {
inherit logFormat;
extraConfig = ''
${tlsAcmeDnsChallenge}
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;
};
};
};
};
}