LoutreOS: indexation de logs nginx avec Loki

This commit is contained in:
nyanloutre 2021-01-06 02:12:01 +01:00
parent 8a2ca1fa21
commit 21740ed665
3 changed files with 111 additions and 1 deletions

View file

@ -35,6 +35,20 @@ in
];
services = {
logrotate = {
enable = true;
paths = {
nginx = {
path = "/var/log/nginx/*.log";
user = config.services.nginx.user;
group = config.services.nginx.group;
keep = 7;
extraConfig = ''
compress
'';
};
};
};
fail2ban.enable = true;