diff options
author | Ryan Lahfa <masterancpp@gmail.com> | 2024-01-12 20:01:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-12 20:01:29 +0100 |
commit | 6d8630efda54147d2fd3792fb00ad31c78042fbb (patch) | |
tree | 3b8ed122727dc24537515550af10c1fb1bac4d42 /nixos/modules/services/web-servers | |
parent | 3287441158d36d15257902e4579d31ef422b130f (diff) | |
parent | 157256f9ddb85ca8937f49baeee3651e2b5713d8 (diff) |
Merge pull request #270270 from SuperSandro2000/nginx-fastopen
nixos/nginx: filter more options when listening has quic
Diffstat (limited to 'nixos/modules/services/web-servers')
-rw-r--r-- | nixos/modules/services/web-servers/nginx/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/web-servers/nginx/default.nix b/nixos/modules/services/web-servers/nginx/default.nix index d74e3a43de2f..6799de6c7d96 100644 --- a/nixos/modules/services/web-servers/nginx/default.nix +++ b/nixos/modules/services/web-servers/nginx/default.nix @@ -334,8 +334,8 @@ let + optionalString vhost.default "default_server " + optionalString vhost.reuseport "reuseport " + optionalString (extraParameters != []) (concatStringsSep " " - (let inCompatibleParameters = [ "ssl" "proxy_protocol" "http2" ]; - isCompatibleParameter = param: !(any (p: p == param) inCompatibleParameters); + (let inCompatibleParameters = [ "accept_filter" "backlog" "deferred" "fastopen" "http2" "proxy_protocol" "so_keepalive" "ssl" ]; + isCompatibleParameter = param: !(any (p: lib.hasPrefix p param) inCompatibleParameters); in filter isCompatibleParameter extraParameters)) + ";")) + " |