rico0: enable grafana

This commit is contained in:
Adithya 2024-07-17 22:33:18 +05:30
parent 3ba7463fec
commit 46ab9b6881
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
3 changed files with 24 additions and 1 deletions

View file

@ -52,6 +52,7 @@ _: {
mapping = {
"frp.labs.adtya.xyz" = "10.10.10.10,fd7c:585c:c4ae::10";
"blocky.labs.adtya.xyz" = "10.10.10.10,fd7c:585c:c4ae::10";
"grafana.labs.adtya.xyz" = "10.10.10.10,fd7c:585c:c4ae::10";
"prometheus.labs.adtya.xyz" = "10.10.10.10,fd7c:585c:c4ae::10";
"transmission.labs.adtya.xyz" = "10.10.10.14,fd7c:585c:c4ae::14";
};

View file

@ -1,3 +1,3 @@
_: {
imports = [ ./blocky.nix ./prometheus.nix ];
imports = [ ./blocky.nix ./grafana.nix ./prometheus.nix ];
}

View file

@ -0,0 +1,22 @@
_: {
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;
};
};
};
};
}