mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 12:22:37 +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
@ -8,9 +8,12 @@ let
|
||||
configFile = pkgs.writeText "nginx.conf" ''
|
||||
user ${cfg.user} ${cfg.group};
|
||||
daemon off;
|
||||
|
||||
${cfg.config}
|
||||
|
||||
${optionalString (cfg.httpConfig != "") ''
|
||||
http {
|
||||
include ${cfg.package}/conf/mime.types;
|
||||
${cfg.httpConfig}
|
||||
}
|
||||
''}
|
||||
|
Loading…
Reference in New Issue
Block a user