aboutsummaryrefslogtreecommitdiff
path: root/modules/apps
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-06-04 22:32:16 +0200
committerIgor Pashev <pashev.igor@gmail.com>2019-06-04 22:35:41 +0200
commit2319772f807508b1dedd19e14634bfdffd855ab3 (patch)
tree4d124b46929cdafa9dff3ccd67daaa81ac774c4b /modules/apps
parent2ab9b4ce75fbd12365196484415e0d2704795613 (diff)
downloadnixsap-2319772f807508b1dedd19e14634bfdffd855ab3.tar.gz
Rotate nginx logs as nginx user
Diffstat (limited to 'modules/apps')
-rw-r--r--modules/apps/nginx.nix1
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;