diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-11-18 21:47:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-18 21:47:12 +0100 |
commit | 9cb930ff687a6f5dc9d37477e50ad24aea38fd5f (patch) | |
tree | 1e548b5e8c28336a0b396cbda593648993d609c5 /nixos/modules/services/web-servers | |
parent | 1a04b0470dab6039c0abeb2bc268cb080eb1df97 (diff) | |
download | nixpkgs-9cb930ff687a6f5dc9d37477e50ad24aea38fd5f.tar nixpkgs-9cb930ff687a6f5dc9d37477e50ad24aea38fd5f.tar.gz nixpkgs-9cb930ff687a6f5dc9d37477e50ad24aea38fd5f.tar.bz2 nixpkgs-9cb930ff687a6f5dc9d37477e50ad24aea38fd5f.tar.lz nixpkgs-9cb930ff687a6f5dc9d37477e50ad24aea38fd5f.tar.xz nixpkgs-9cb930ff687a6f5dc9d37477e50ad24aea38fd5f.tar.zst nixpkgs-9cb930ff687a6f5dc9d37477e50ad24aea38fd5f.zip |
nixos/nginx: fix start when recommendedOptimisation is off
Also done by other distros for example Fedora https://bodhi.fedoraproject.org/updates/FEDORA-2020-78690e2cdd
Diffstat (limited to 'nixos/modules/services/web-servers')
-rw-r--r-- | nixos/modules/services/web-servers/nginx/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/modules/services/web-servers/nginx/default.nix b/nixos/modules/services/web-servers/nginx/default.nix index 5717b86b3be..96e45cfc4f7 100644 --- a/nixos/modules/services/web-servers/nginx/default.nix +++ b/nixos/modules/services/web-servers/nginx/default.nix @@ -79,6 +79,11 @@ let # 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; + # When recommendedOptimisation is disabled nginx fails to start because the mailmap mime.types database + # contains 1026 enries and the default is only 1024. Setting to a higher number to remove the need to + # overwrite it because nginx does not allow duplicated settings. + types_hash_max_size 4096; + include ${cfg.package}/conf/fastcgi.conf; include ${cfg.package}/conf/uwsgi_params; @@ -113,7 +118,6 @@ let tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; - types_hash_max_size 4096; ''} ssl_protocols ${cfg.sslProtocols}; |