[observatory] Set up monitoring (grafana, prometheus, loki)

This commit is contained in:
ctsk
2023-10-01 12:26:11 +02:00
parent 6428877bd0
commit d00b184d91
3 changed files with 233 additions and 3 deletions

View File

@@ -19,17 +19,25 @@ let
in
{
imports = [
./hardware.nix
../../modules/gitea
../../modules/headscale
../../modules/observatory
../../users/christian
];
services = {
gitea.enable = true;
nginx.enable = true;
headscale.enable = true;
observatory.enable = true;
nginx = {
enable = true;
recommendedProxySettings = true;
};
openssh = {
enable = true;
ports = ports.ssh;
@@ -46,6 +54,9 @@ in
};
};
networking.hostName = "fugitive";
networking.firewall = {
enable = true;
allowedTCPPorts = [ 80 443 ];
@@ -67,8 +78,12 @@ in
};
};
age = {
secrets.namecheap.file = ../../../secrets/namecheap.age;
age.secrets = {
namecheap.file = ../../../secrets/namecheap.age;
grafana = {
file = ../../../secrets/grafana.age;
owner = "grafana";
};
};
security = {