feat: add grafana

This commit is contained in:
Ivan R. 2024-03-03 20:05:50 +05:00
parent a8191432fa
commit ab3c57c29e
No known key found for this signature in database
GPG key ID: 56C7BAAE859B302C
2 changed files with 23 additions and 0 deletions

View file

@ -26,6 +26,8 @@
./programs/deluge.nix
./programs/prosody.nix
./programs/yggdrasil.nix
./programs/grafana.nix
];
nix = {

View file

@ -0,0 +1,21 @@
{ config, ... }: {
services.grafana = {
enable = true;
settings = {
server = {
http_addr = "127.0.0.1";
http_port = 55010;
domain = "grafana.comfycamp.space";
};
};
};
services.nginx.virtualHosts."grafana.comfycamp.space" = {
useACMEHost = "comfycamp.space";
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:55010";
proxyWebsockets = true;
};
};
}