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
wip/yesman
Pascal Bach 7 years ago committed by Robin Gloster
parent e309c318c6
commit 1d8412d17a
  1. 7
      pkgs/servers/http/nginx/generic.nix

@ -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;

Loading…
Cancel
Save