mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nginx: add appendConfig option with types.lines
This commit is contained in:
parent
42c083df41
commit
85d38d1436
1 changed files with 14 additions and 0 deletions
|
@ -9,6 +9,7 @@ let
|
||||||
user ${cfg.user} ${cfg.group};
|
user ${cfg.user} ${cfg.group};
|
||||||
daemon off;
|
daemon off;
|
||||||
${cfg.config}
|
${cfg.config}
|
||||||
|
${cfg.appendConfig}
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
|
|
||||||
|
@ -36,6 +37,19 @@ in
|
||||||
";
|
";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
appendConfig = mkOption {
|
||||||
|
type = types.lines;
|
||||||
|
default = "";
|
||||||
|
description = ''
|
||||||
|
Configuration lines appended to the generated Nginx
|
||||||
|
configuration file. Commonly used by different modules
|
||||||
|
providing http snippets. <option>appendConfig</option>
|
||||||
|
can be specified more than once and it's value will be
|
||||||
|
concatenated (contrary to <option>config</option> which
|
||||||
|
can be set only once).
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
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