nginx/logrotate: run logrotate as nginx user

This commit is contained in:
Dominique Martinet 2022-02-27 23:03:24 +09:00
parent 45ef5c1741
commit b0a04e4105

View file

@ -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;