Merge pull request #270270 from SuperSandro2000/nginx-fastopen
nixos/nginx: filter more options when listening has quic
This commit is contained in:
commit
6d8630efda
@ -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…
Reference in New Issue
Block a user