mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
nixos/nginx: use mailcap mime.types
The mime type definitions included with nginx are very incomplete, so we use a list of mime types from the mailcap package, which is also used by most other Linux distributions by default.
This commit is contained in:
parent
015e3edd24
commit
ff0148d868
2 changed files with 7 additions and 2 deletions
|
@ -61,7 +61,10 @@ let
|
|||
|
||||
${optionalString (cfg.httpConfig == "" && cfg.config == "") ''
|
||||
http {
|
||||
include ${cfg.package}/conf/mime.types;
|
||||
# The mime type definitions included with nginx are very incomplete, so
|
||||
# we use a list of mime types from the mailcap package, which is also
|
||||
# used by most other Linux distributions by default.
|
||||
include ${pkgs.mailcap}/etc/nginx/mime.types;
|
||||
include ${cfg.package}/conf/fastcgi.conf;
|
||||
include ${cfg.package}/conf/uwsgi_params;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue