mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 20:55:31 +03:00
nginx: fixed duplicate http declaration
This commit is contained in:
parent
91680de317
commit
8c61b3af03
1 changed files with 3 additions and 9 deletions
|
@ -16,6 +16,8 @@ let
|
||||||
error_log stderr;
|
error_log stderr;
|
||||||
daemon off;
|
daemon off;
|
||||||
|
|
||||||
|
${cfg.config}
|
||||||
|
|
||||||
http {
|
http {
|
||||||
include ${cfg.package}/conf/mime.types;
|
include ${cfg.package}/conf/mime.types;
|
||||||
include ${cfg.package}/conf/fastcgi.conf;
|
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.httpConfig}
|
||||||
}
|
}
|
||||||
''}
|
|
||||||
${cfg.appendConfig}
|
${cfg.appendConfig}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue