mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +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};
|
||||
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 = "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue