nginx module: Enable modularly specifying servers
This commit is contained in:
parent
4e6eae45ee
commit
a1a167bc8b
@ -9,6 +9,11 @@ let
|
|||||||
user ${cfg.user} ${cfg.group};
|
user ${cfg.user} ${cfg.group};
|
||||||
daemon off;
|
daemon off;
|
||||||
${cfg.config}
|
${cfg.config}
|
||||||
|
${optionalString (cfg.httpConfig != "") ''
|
||||||
|
http {
|
||||||
|
${cfg.httpConfig}
|
||||||
|
}
|
||||||
|
''}
|
||||||
${cfg.appendConfig}
|
${cfg.appendConfig}
|
||||||
'';
|
'';
|
||||||
in
|
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 {
|
stateDir = mkOption {
|
||||||
default = "/var/spool/nginx";
|
default = "/var/spool/nginx";
|
||||||
description = "
|
description = "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user