mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-12 05:16:25 +03:00
Merge pull request #270270 from SuperSandro2000/nginx-fastopen
nixos/nginx: filter more options when listening has quic
This commit is contained in:
commit
6d8630efda
1 changed files with 2 additions and 2 deletions
|
@ -334,8 +334,8 @@ let
|
||||||
+ optionalString vhost.default "default_server "
|
+ optionalString vhost.default "default_server "
|
||||||
+ optionalString vhost.reuseport "reuseport "
|
+ optionalString vhost.reuseport "reuseport "
|
||||||
+ optionalString (extraParameters != []) (concatStringsSep " "
|
+ optionalString (extraParameters != []) (concatStringsSep " "
|
||||||
(let inCompatibleParameters = [ "ssl" "proxy_protocol" "http2" ];
|
(let inCompatibleParameters = [ "accept_filter" "backlog" "deferred" "fastopen" "http2" "proxy_protocol" "so_keepalive" "ssl" ];
|
||||||
isCompatibleParameter = param: !(any (p: p == param) inCompatibleParameters);
|
isCompatibleParameter = param: !(any (p: lib.hasPrefix p param) inCompatibleParameters);
|
||||||
in filter isCompatibleParameter extraParameters))
|
in filter isCompatibleParameter extraParameters))
|
||||||
+ ";"))
|
+ ";"))
|
||||||
+ "
|
+ "
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue