nginx: add additional features when streams are enabled

This allows nginx to work as a TCP load balancer including
TLS and geo IP routing support
This commit is contained in:
Pascal Bach
2017-08-21 20:30:41 +02:00
committed by Robin Gloster
parent e309c318c6
commit 1d8412d17a
+6 -1
View File
@@ -43,7 +43,12 @@ stdenv.mkDerivation {
"--with-pcre-jit"
# Install destination problems
# "--with-http_perl_module"
] ++ optional withStream "--with-stream"
] ++ optional withStream [
"--with-stream"
"--with-stream_geoip_module"
"--with-stream_realip_module"
"--with-stream_ssl_module"
"--with-stream_ssl_preread_module"
++ optional (gd != null) "--with-http_image_filter_module"
++ optional (elem stdenv.system (with platforms; linux ++ freebsd)) "--with-file-aio"
++ map (mod: "--add-module=${mod.src}") modules;