rico0: enable grafana
This commit is contained in:
parent
3ba7463fec
commit
46ab9b6881
3 changed files with 24 additions and 1 deletions
|
@ -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";
|
||||
};
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
_: {
|
||||
imports = [ ./blocky.nix ./prometheus.nix ];
|
||||
imports = [ ./blocky.nix ./grafana.nix ./prometheus.nix ];
|
||||
}
|
||||
|
|
22
hosts/rico0/services/apps/grafana.nix
Normal file
22
hosts/rico0/services/apps/grafana.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue