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

23 lines
487 B
Nix
Raw Normal View History

2024-07-17 22:33:18 +05:30
_: {
services = {
caddy = {
virtualHosts."grafana.labs.adtya.xyz" = {
extraConfig = ''
reverse_proxy 127.0.0.1:9091
tls /persist/secrets/caddy/certs/default.crt /persist/secrets/caddy/certs/default.key
'';
};
};
grafana = {
enable = true;
settings = {
server = {
domain = "grafana.labs.adtya.xyz";
http_addr = "127.0.0.1";
http_port = 9091;
};
};
};
};
}