Merge pull request #111302 from fooker/pr/nginx-default-type

nixos/nginx: serve unknown MIME-Types as binary
This commit is contained in:
Martin Weinelt 2021-02-09 01:44:47 +01:00 committed by GitHub
commit 47901b544c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,6 +79,8 @@ let
include ${pkgs.mailcap}/etc/nginx/mime.types;
include ${cfg.package}/conf/fastcgi.conf;
include ${cfg.package}/conf/uwsgi_params;
default_type application/octet-stream;
'';
configFile = pkgs.writers.writeNginxConfig "nginx.conf" ''