From bd6ee5f87273ce4c3b012eb1bebc81cee008903a Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Wed, 21 Dec 2016 11:34:31 +0300 Subject: nginx: added read-only logDir --- modules/apps/nginx.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules') 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. -- cgit v1.2.3