summaryrefslogtreecommitdiffhomepage
path: root/auto
diff options
context:
space:
mode:
authorDmitry Volyntsev <xeioex@nginx.com>2016-09-01 14:45:33 +0300
committerDmitry Volyntsev <xeioex@nginx.com>2016-09-01 14:45:33 +0300
commitfe2774a9d689fa1bf201dd0e89449e3d9e4ad926 (patch)
treea3f16f55464cb8b7523d9d1895feb85073f03dec /auto
parenta613df5b3f470369e7ce7ebe34e82056b6fc0919 (diff)
downloadnginx-fe2774a9d689fa1bf201dd0e89449e3d9e4ad926.tar.gz
nginx-fe2774a9d689fa1bf201dd0e89449e3d9e4ad926.tar.bz2
Stream: realip module.
Diffstat (limited to 'auto')
-rw-r--r--auto/modules10
-rw-r--r--auto/options3
2 files changed, 13 insertions, 0 deletions
diff --git a/auto/modules b/auto/modules
index 255dc069c..433767a62 100644
--- a/auto/modules
+++ b/auto/modules
@@ -1007,6 +1007,16 @@ if [ $STREAM != NO ]; then
. auto/module
fi
+ if [ $STREAM_REALIP = YES ]; then
+ ngx_module_name=ngx_stream_realip_module
+ ngx_module_deps=
+ ngx_module_srcs=src/stream/ngx_stream_realip_module.c
+ ngx_module_libs=
+ ngx_module_link=$STREAM_REALIP
+
+ . auto/module
+ fi
+
if [ $STREAM_LIMIT_CONN = YES ]; then
ngx_module_name=ngx_stream_limit_conn_module
ngx_module_deps=
diff --git a/auto/options b/auto/options
index a8fce30b4..73149d955 100644
--- a/auto/options
+++ b/auto/options
@@ -115,6 +115,7 @@ MAIL_SMTP=YES
STREAM=NO
STREAM_SSL=NO
+STREAM_REALIP=NO
STREAM_LIMIT_CONN=YES
STREAM_ACCESS=YES
STREAM_GEO=YES
@@ -296,6 +297,7 @@ use the \"--with-mail_ssl_module\" option instead"
--with-stream) STREAM=YES ;;
--with-stream=dynamic) STREAM=DYNAMIC ;;
--with-stream_ssl_module) STREAM_SSL=YES ;;
+ --with-stream_realip_module) STREAM_REALIP=YES ;;
--with-stream_geoip_module) STREAM_GEOIP=YES ;;
--with-stream_geoip_module=dynamic)
STREAM_GEOIP=DYNAMIC ;;
@@ -503,6 +505,7 @@ cat << END
--with-stream enable TCP/UDP proxy module
--with-stream=dynamic enable dynamic TCP/UDP proxy module
--with-stream_ssl_module enable ngx_stream_ssl_module
+ --with-stream_realip_module enable ngx_stream_realip_module
--with-stream_geoip_module enable ngx_stream_geoip_module
--with-stream_geoip_module=dynamic enable dynamic ngx_stream_geoip_module
--without-stream_limit_conn_module disable ngx_stream_limit_conn_module