diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2019-06-04 22:32:16 +0200 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2019-06-04 22:35:41 +0200 |
commit | 2319772f807508b1dedd19e14634bfdffd855ab3 (patch) | |
tree | 4d124b46929cdafa9dff3ccd67daaa81ac774c4b /modules/apps | |
parent | 2ab9b4ce75fbd12365196484415e0d2704795613 (diff) | |
download | nixsap-2319772f807508b1dedd19e14634bfdffd855ab3.tar.gz |
Rotate nginx logs as nginx user
Diffstat (limited to 'modules/apps')
-rw-r--r-- | modules/apps/nginx.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/apps/nginx.nix b/modules/apps/nginx.nix index 7965c8d..5d1102e 100644 --- a/modules/apps/nginx.nix +++ b/modules/apps/nginx.nix @@ -163,6 +163,7 @@ in { nixsap.apps.logrotate.conf.nginx = mkIf enabled { files = [ "${cfg.logDir}/*.log" ]; directives = { + su = "${cfg.user} ${cfg.user}"; delaycompress = mkDefault true; missingok = mkDefault true; notifempty = mkDefault true; |