From f8de52a2fead1a77eb8597881e82ac57b56bea2b Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Fri, 15 Mar 2019 14:31:11 +0100 Subject: [PATCH] Revert "nixos/nginx: support h2c" --- nixos/modules/services/web-servers/nginx/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/web-servers/nginx/default.nix b/nixos/modules/services/web-servers/nginx/default.nix index cfd7c8f4e5bf..1c9fbe048f84 100644 --- a/nixos/modules/services/web-servers/nginx/default.nix +++ b/nixos/modules/services/web-servers/nginx/default.nix @@ -197,7 +197,7 @@ let listenString = { addr, port, ssl, extraParameters ? [], ... }: "listen ${addr}:${toString port} " + optionalString ssl "ssl " - + optionalString vhost.http2 "http2 " + + optionalString (ssl && vhost.http2) "http2 " + optionalString vhost.default "default_server " + optionalString (extraParameters != []) (concatStringsSep " " extraParameters) + ";";