2024-10-27 18:37:05 +05:30
|
|
|
_:
|
|
|
|
let
|
2024-10-31 14:39:20 +05:30
|
|
|
inherit (import ../../../shared/caddy-helpers.nix) logFormat;
|
2024-10-27 18:37:05 +05:30
|
|
|
domainName = "grafana.labs.adtya.xyz";
|
|
|
|
in
|
|
|
|
{
|
|
|
|
services = {
|
|
|
|
caddy = {
|
|
|
|
virtualHosts."${domainName}" = {
|
2024-10-27 23:09:50 +05:30
|
|
|
inherit logFormat;
|
2024-10-27 18:37:05 +05:30
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|