From 1d8412d17aff5ef773a9ab3d1bb58929ec8e2531 Mon Sep 17 00:00:00 2001 From: Pascal Bach Date: Sat, 19 Aug 2017 23:35:24 +0200 Subject: [PATCH] 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 --- pkgs/servers/http/nginx/generic.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/http/nginx/generic.nix b/pkgs/servers/http/nginx/generic.nix index 47221609590..41623c600f6 100644 --- a/pkgs/servers/http/nginx/generic.nix +++ b/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;