LoutreOS: indexation de logs nginx avec Loki
This commit is contained in:
parent
8a2ca1fa21
commit
21740ed665
3 changed files with 111 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue