1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

nixos/nginx: support h2c

This commit is contained in:
Jordan Johnson-Doyle 2019-03-08 17:50:46 +00:00
parent e3e50a12cc
commit 04425c6223
No known key found for this signature in database
GPG key ID: A95F87B578CE79B6

View file

@ -197,7 +197,7 @@ let
listenString = { addr, port, ssl, extraParameters ? [], ... }:
"listen ${addr}:${toString port} "
+ optionalString ssl "ssl "
+ optionalString (ssl && vhost.http2) "http2 "
+ optionalString vhost.http2 "http2 "
+ optionalString vhost.default "default_server "
+ optionalString (extraParameters != []) (concatStringsSep " " extraParameters)
+ ";";