nginx module: make httpConfig backward compatible

This commit is contained in:
Robin Gloster 2016-07-25 15:10:36 +00:00
parent 5dd7cf964a
commit 186a8400ed
1 changed files with 6 additions and 0 deletions

View File

@ -70,8 +70,14 @@ let
server_tokens ${if cfg.serverTokens then "on" else "off"};
${vhosts}
}
${optionalString (cfg.httpConfig != "") ''
http {
include ${cfg.package}/conf/mime.types;
include ${cfg.package}/conf/fastcgi.conf;
${cfg.httpConfig}
}
''}
${cfg.appendConfig}
'';