mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 05:05:29 +03:00
nginx module: Enable modularly specifying servers
This commit is contained in:
parent
4e6eae45ee
commit
a1a167bc8b
1 changed files with 11 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue