Stream: geo module.

This commit is contained in:
Vladimir Homutov 2016-06-30 16:12:50 +03:00
parent 4cf0e28483
commit bb790f5d30
3 changed files with 1585 additions and 0 deletions

View File

@ -1024,6 +1024,16 @@ if [ $STREAM != NO ]; then
. auto/module . auto/module
fi fi
if [ $STREAM_GEO = YES ]; then
ngx_module_name=ngx_stream_geo_module
ngx_module_deps=
ngx_module_srcs=src/stream/ngx_stream_geo_module.c
ngx_module_libs=
ngx_module_link=$STREAM_GEO
. auto/module
fi
if [ $STREAM_GEOIP != NO ]; then if [ $STREAM_GEOIP != NO ]; then
ngx_module_name=ngx_stream_geoip_module ngx_module_name=ngx_stream_geoip_module
ngx_module_deps= ngx_module_deps=

View File

@ -117,6 +117,7 @@ STREAM=NO
STREAM_SSL=NO STREAM_SSL=NO
STREAM_LIMIT_CONN=YES STREAM_LIMIT_CONN=YES
STREAM_ACCESS=YES STREAM_ACCESS=YES
STREAM_GEO=YES
STREAM_GEOIP=NO STREAM_GEOIP=NO
STREAM_MAP=YES STREAM_MAP=YES
STREAM_RETURN=YES STREAM_RETURN=YES
@ -300,6 +301,7 @@ use the \"--with-mail_ssl_module\" option instead"
--without-stream_limit_conn_module) --without-stream_limit_conn_module)
STREAM_LIMIT_CONN=NO ;; STREAM_LIMIT_CONN=NO ;;
--without-stream_access_module) STREAM_ACCESS=NO ;; --without-stream_access_module) STREAM_ACCESS=NO ;;
--without-stream_geo_module) STREAM_GEO=NO ;;
--without-stream_map_module) STREAM_MAP=NO ;; --without-stream_map_module) STREAM_MAP=NO ;;
--without-stream_return_module) STREAM_RETURN=NO ;; --without-stream_return_module) STREAM_RETURN=NO ;;
--without-stream_upstream_hash_module) --without-stream_upstream_hash_module)
@ -502,6 +504,7 @@ cat << END
--with-stream_geoip_module=dynamic enable dynamic 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 --without-stream_limit_conn_module disable ngx_stream_limit_conn_module
--without-stream_access_module disable ngx_stream_access_module --without-stream_access_module disable ngx_stream_access_module
--without-stream_geo_module disable ngx_stream_geo_module
--without-stream_map_module disable ngx_stream_map_module --without-stream_map_module disable ngx_stream_map_module
--without-stream_return_module disable ngx_stream_return_module --without-stream_return_module disable ngx_stream_return_module
--without-stream_upstream_hash_module --without-stream_upstream_hash_module

File diff suppressed because it is too large Load Diff