update to nixos-22.05 #2
@ -92,20 +92,8 @@ in
|
||||
|
||||
# redis.enable = true;
|
||||
|
||||
logrotate = {
|
||||
enable = true;
|
||||
paths = {
|
||||
nginx = {
|
||||
path = "/var/log/nginx/*.log";
|
||||
user = config.services.nginx.user;
|
||||
group = config.services.nginx.group;
|
||||
keep = 7;
|
||||
extraConfig = ''
|
||||
compress
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
# enable with nginx defult config
|
||||
logrotate.enable = true;
|
||||
|
||||
fail2ban.enable = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user