summary refs log tree commit diff
path: root/pkgs/servers
diff options
context:
space:
mode:
authorPascal Bach <pascal.bach@nextrem.ch>2017-08-19 23:35:24 +0200
committerRobin Gloster <mail@glob.in>2017-08-21 20:30:41 +0200
commit1d8412d17aff5ef773a9ab3d1bb58929ec8e2531 (patch)
treef317e916b8659a7074852dc7e3602bcac1ef7475 /pkgs/servers
parente309c318c607b318d354e0837635a2bf450a7fe7 (diff)
downloadnixpkgs-1d8412d17aff5ef773a9ab3d1bb58929ec8e2531.tar
nixpkgs-1d8412d17aff5ef773a9ab3d1bb58929ec8e2531.tar.gz
nixpkgs-1d8412d17aff5ef773a9ab3d1bb58929ec8e2531.tar.bz2
nixpkgs-1d8412d17aff5ef773a9ab3d1bb58929ec8e2531.tar.lz
nixpkgs-1d8412d17aff5ef773a9ab3d1bb58929ec8e2531.tar.xz
nixpkgs-1d8412d17aff5ef773a9ab3d1bb58929ec8e2531.tar.zst
nixpkgs-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')
-rw-r--r--pkgs/servers/http/nginx/generic.nix7
1 files changed, 6 insertions, 1 deletions
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;