nginx module: Enable modularly specifying servers

This commit is contained in:
Shea Levy 2014-03-17 23:31:56 -04:00
parent 4e6eae45ee
commit a1a167bc8b

View File

@ -9,6 +9,11 @@ let
user ${cfg.user} ${cfg.group};
daemon off;
${cfg.config}
${optionalString (cfg.httpConfig != "") ''
http {
${cfg.httpConfig}
}
''}
${cfg.appendConfig}
'';
in
@ -51,6 +56,12 @@ in
'';
};
httpConfig = mkOption {
type = types.lines;
default = "";
description = "Configuration lines to be appended inside of the http {} block.";
};
stateDir = mkOption {
default = "/var/spool/nginx";
description = "