From e25dc4a95ed69f37ce443b8fcad00fb9337e6eed Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Fri, 21 Apr 2023 17:18:45 +0200 Subject: [PATCH] nixos/nginx: Fix listen string generation This regressed in 327b0cff7aedc20a148d245b1182f43800acc1f5 breaking nixosTests.php, among other things. --- nixos/modules/services/web-servers/nginx/default.nix | 4 ++-- 1 file 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 4f97fe752ef7..1e6cb0d37405 100644 --- a/nixos/modules/services/web-servers/nginx/default.nix +++ b/nixos/modules/services/web-servers/nginx/default.nix @@ -318,7 +318,7 @@ let listenString = { addr, port, ssl, extraParameters ? [], ... }: # UDP listener for QUIC transport protocol. - (optionalString (ssl && vhost.quic) " + (optionalString (ssl && vhost.quic) (" listen ${addr}:${toString port} quic " + optionalString vhost.default "default_server " + optionalString vhost.reuseport "reuseport " @@ -326,7 +326,7 @@ let let inCompatibleParameters = [ "ssl" "proxy_protocol" "http2" ]; isCompatibleParameter = param: !(any (p: p == param) inCompatibleParameters); in filter isCompatibleParameter extraParameters)) - + ";") + + ";")) + " listen ${addr}:${toString port} "