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

34 lines
651 B
Nix
Raw Normal View History

2024-09-14 19:55:57 +05:30
_:
let
inherit (import ../../../shared/caddy-helpers.nix) logFormat;
domainName = "grafana.labs.adtya.xyz";
in
{
2024-07-17 22:33:18 +05:30
services = {
caddy = {
2024-09-14 19:55:57 +05:30
virtualHosts."${domainName}" = {
logFormat = logFormat domainName;
2024-07-17 22:33:18 +05:30
extraConfig = ''
reverse_proxy 127.0.0.1:9091
'';
};
};
grafana = {
enable = true;
settings = {
server = {
2024-09-14 19:55:57 +05:30
domain = domainName;
2024-07-17 22:33:18 +05:30
http_addr = "127.0.0.1";
http_port = 9091;
};
2024-07-18 22:01:46 +05:30
analytics = {
enable = false;
};
panels = {
disable_sanitize_html = true;
};
2024-07-17 22:33:18 +05:30
};
};
};
}