nginx: fixed duplicate http declaration

This commit is contained in:
Tristan Helmich 2016-07-26 18:11:16 +02:00 committed by Robin Gloster
parent 91680de317
commit 8c61b3af03

View file

@ -16,6 +16,8 @@ let
error_log stderr;
daemon off;
${cfg.config}
http {
include ${cfg.package}/conf/mime.types;
include ${cfg.package}/conf/fastcgi.conf;
@ -86,18 +88,10 @@ let
}
}
''}
}
${cfg.config}
# Keep this seperate to allow overriding previous settings
${optionalString (cfg.httpConfig != "") ''
http {
include ${cfg.package}/conf/mime.types;
include ${cfg.package}/conf/fastcgi.conf;
${cfg.httpConfig}
}
''}
${cfg.appendConfig}
'';