Fix caddy logging
Some checks failed
Run nix flake check / flake-check (push) Failing after 9m1s
Periodic flake update / flake-update (push) Successful in 1m36s

This commit is contained in:
2025-01-28 00:49:22 +01:00
parent 399c853f0c
commit e366a05204
3 changed files with 49 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
{ ... }:
{ config, ... }:
{
services.promtail = {
enable = true;
@@ -36,6 +36,19 @@
}
];
}
{
job_name = "varlog";
static_configs = [
{
targets = [ "localhost" ];
labels = {
job = "varlog";
__path__ = "/var/log/**/*.log";
hostname = "${config.networking.hostName}";
};
}
];
}
];
};
};