diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/apps/nginx.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/apps/nginx.nix b/modules/apps/nginx.nix index b9ba7e4..d7b3c13 100644 --- a/modules/apps/nginx.nix +++ b/modules/apps/nginx.nix @@ -70,6 +70,15 @@ in { type = path; default = "/nginx"; }; + logDir = mkOption { + description = '' + Nginx directory for logs. This is read-only. Use it in configuration + files of nginx itself or logrotate. + ''; + type = path; + readOnly = true; + default = "${cfg.stateDir}/logs"; + }; runDir = mkOption { description = '' Directory for sockets and PID-file. |