mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 03:25:36 +00:00
nginx: add appendConfig option with types.lines
This commit is contained in:
parent
42c083df41
commit
85d38d1436
@ -9,6 +9,7 @@ let
|
||||
user ${cfg.user} ${cfg.group};
|
||||
daemon off;
|
||||
${cfg.config}
|
||||
${cfg.appendConfig}
|
||||
'';
|
||||
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 {
|
||||
default = "/var/spool/nginx";
|
||||
description = "
|
||||
|
Loading…
Reference in New Issue
Block a user