nginx/logrotate: run logrotate as nginx user
This commit is contained in:
parent
45ef5c1741
commit
b0a04e4105
1 changed files with 1 additions and 0 deletions
|
@ -992,6 +992,7 @@ in
|
|||
services.logrotate.settings.nginx = mapAttrs (_: mkDefault) {
|
||||
files = "/var/log/nginx/*.log";
|
||||
frequency = "weekly";
|
||||
su = "${cfg.user} ${cfg.group}";
|
||||
rotate = 26;
|
||||
compress = true;
|
||||
delaycompress = true;
|
||||
|
|
Loading…
Reference in a new issue