git.iko.soy/typeable/nixpkgs
on master help sign in
nginx module: fix cfg.config backwards compatibility

fixes #17604

commitb0b0a45bb1277e77528a0216a0f697540ef659a6 authorRobin Gloster <mail@glob.in> dateTue 9 Aug 2016, 11:59 (10 years ago) parent199f5a2
1 file changed+7−4
nixos/modules/services/web-servers/nginx/default.nix+7−4
nixos/modules/services/web-servers/nginx/default.nix+7−4
@@ -18,7 +18,7 @@ let
1818
1919 ${cfg.config}
2020
21− ${optionalString (cfg.httpConfig == "") ''
21+ ${optionalString (cfg.httpConfig == "" && cfg.config == "") ''
2222 http {
2323 include ${cfg.package}/conf/mime.types;
2424 include ${cfg.package}/conf/fastcgi.conf;
@@ -233,9 +233,12 @@ in
233233 };
234234
235235 config = mkOption {
236− default = "events {}";
236+ default = "";
237237 description = "
238238 Verbatim nginx.conf configuration.
239+ This is mutually exclusive with the structured configuration
240+ via virtualHosts and the recommendedXyzSettings configuration
241+ options. See appendConfig for appending to the generated http block.
239242 ";
240243 };
241244
@@ -268,8 +271,8 @@ in
268271 default = "";
269272 description = "
270273 Configuration lines to be appended to the generated http block.
271− This is mutually exclusive with using httpConfig for specifying the whole
272− http block verbatim.
274+ This is mutually exclusive with using config and httpConfig for
275+ specifying the whole http block verbatim.
273276 ";
274277 };
275278