niksos/hosts/chmura/services/grafana.nix
2024-07-16 00:26:09 +02:00

18 lines
420 B
Nix

{
services.grafana = {
enable = true;
settings.server = {
http_addr = "127.0.0.1";
http_port = 3000;
domain = "jacekpoz.pl";
root_url = "https://d.jacekpoz.pl";
};
};
services.caddy = {
enable = true;
virtualHosts."d.jacekpoz.pl".extraConfig = ''
reverse_proxy * localhost:3000
'';
};
}