diff options
author | Pascal Bach <pascal.bach@nextrem.ch> | 2017-08-19 23:35:24 +0200 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2017-08-21 20:30:41 +0200 |
commit | 1d8412d17aff5ef773a9ab3d1bb58929ec8e2531 (patch) | |
tree | f317e916b8659a7074852dc7e3602bcac1ef7475 /pkgs/servers/http/nginx | |
parent | e309c318c607b318d354e0837635a2bf450a7fe7 (diff) | |
download | nixlib-1d8412d17aff5ef773a9ab3d1bb58929ec8e2531.tar nixlib-1d8412d17aff5ef773a9ab3d1bb58929ec8e2531.tar.gz nixlib-1d8412d17aff5ef773a9ab3d1bb58929ec8e2531.tar.bz2 nixlib-1d8412d17aff5ef773a9ab3d1bb58929ec8e2531.tar.lz nixlib-1d8412d17aff5ef773a9ab3d1bb58929ec8e2531.tar.xz nixlib-1d8412d17aff5ef773a9ab3d1bb58929ec8e2531.tar.zst nixlib-1d8412d17aff5ef773a9ab3d1bb58929ec8e2531.zip |
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
Diffstat (limited to 'pkgs/servers/http/nginx')
-rw-r--r-- | pkgs/servers/http/nginx/generic.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/servers/http/nginx/generic.nix b/pkgs/servers/http/nginx/generic.nix index 472216095905..41623c600f60 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; |