nginx module: only turn on HTTP2 when SSL is enabled

Signed-off-by: Christoph Hrdinka <c.github@hrdinka.at>
This commit is contained in:
Christoph Hrdinka 2017-12-28 00:08:00 +01:00 committed by Robin Gloster
parent 9fed741776
commit d890212ac8

View File

@ -168,7 +168,7 @@ let
listenString = { addr, port, ssl, ... }:
"listen ${addr}:${toString port} "
+ optionalString ssl "ssl "
+ optionalString vhost.http2 "http2 "
+ optionalString (ssl && vhost.http2) "http2 "
+ optionalString vhost.default "default_server "
+ ";";