mirror of
https://github.com/nginx/nginx.git
synced 2026-08-11 13:34:56 -05:00
Stream: access module.
stream {
server {
...
allow 127.0.0.1;
deny all;
}
}
This commit is contained in:
@@ -514,6 +514,11 @@ if [ $STREAM = YES ]; then
|
||||
STREAM_SRCS="$STREAM_SRCS $STREAM_SSL_SRCS"
|
||||
fi
|
||||
|
||||
if [ $STREAM_ACCESS = YES ]; then
|
||||
modules="$modules $STREAM_ACCESS_MODULE"
|
||||
STREAM_SRCS="$STREAM_SRCS $STREAM_ACCESS_SRCS"
|
||||
fi
|
||||
|
||||
if [ $STREAM_UPSTREAM_HASH = YES ]; then
|
||||
modules="$modules $STREAM_UPSTREAM_HASH_MODULE"
|
||||
STREAM_SRCS="$STREAM_SRCS $STREAM_UPSTREAM_HASH_SRCS"
|
||||
|
||||
@@ -113,6 +113,7 @@ MAIL_SMTP=YES
|
||||
|
||||
STREAM=NO
|
||||
STREAM_SSL=NO
|
||||
STREAM_ACCESS=YES
|
||||
STREAM_UPSTREAM_HASH=YES
|
||||
STREAM_UPSTREAM_LEAST_CONN=YES
|
||||
STREAM_UPSTREAM_ZONE=YES
|
||||
@@ -282,6 +283,7 @@ use the \"--with-mail_ssl_module\" option instead"
|
||||
|
||||
--with-stream) STREAM=YES ;;
|
||||
--with-stream_ssl_module) STREAM_SSL=YES ;;
|
||||
--without-stream_access_module) STREAM_ACCESS=NO ;;
|
||||
--without-stream_upstream_hash_module)
|
||||
STREAM_UPSTREAM_HASH=NO ;;
|
||||
--without-stream_upstream_least_conn_module)
|
||||
@@ -450,6 +452,7 @@ cat << END
|
||||
|
||||
--with-stream enable TCP proxy module
|
||||
--with-stream_ssl_module enable ngx_stream_ssl_module
|
||||
--without-stream_access_module disable ngx_stream_access_module
|
||||
--without-stream_upstream_hash_module
|
||||
disable ngx_stream_upstream_hash_module
|
||||
--without-stream_upstream_least_conn_module
|
||||
|
||||
@@ -567,6 +567,9 @@ STREAM_SSL_MODULE="ngx_stream_ssl_module"
|
||||
STREAM_SSL_DEPS="src/stream/ngx_stream_ssl_module.h"
|
||||
STREAM_SSL_SRCS="src/stream/ngx_stream_ssl_module.c"
|
||||
|
||||
STREAM_ACCESS_MODULE=ngx_stream_access_module
|
||||
STREAM_ACCESS_SRCS=src/stream/ngx_stream_access_module.c
|
||||
|
||||
STREAM_UPSTREAM_HASH_MODULE=ngx_stream_upstream_hash_module
|
||||
STREAM_UPSTREAM_HASH_SRCS=src/stream/ngx_stream_upstream_hash_module.c
|
||||
|
||||
|
||||
Reference in New Issue
Block a user