mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 20:55:31 +03:00
nginx: include mimetypes mapping
(cherry picked from commit b01eebf021
)
Signed-off-by: Domen Kožar <domen@dev.si>
This commit is contained in:
parent
71e67797d6
commit
ba5919ef3b
1 changed files with 3 additions and 0 deletions
|
@ -8,9 +8,12 @@ let
|
||||||
configFile = pkgs.writeText "nginx.conf" ''
|
configFile = pkgs.writeText "nginx.conf" ''
|
||||||
user ${cfg.user} ${cfg.group};
|
user ${cfg.user} ${cfg.group};
|
||||||
daemon off;
|
daemon off;
|
||||||
|
|
||||||
${cfg.config}
|
${cfg.config}
|
||||||
|
|
||||||
${optionalString (cfg.httpConfig != "") ''
|
${optionalString (cfg.httpConfig != "") ''
|
||||||
http {
|
http {
|
||||||
|
include ${cfg.package}/conf/mime.types;
|
||||||
${cfg.httpConfig}
|
${cfg.httpConfig}
|
||||||
}
|
}
|
||||||
''}
|
''}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue