mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
Stream: connection limiting module.
stream {
limit_conn_zone $binary_remote_addr zone=perip:1m;
limit_conn_log_level error;
server {
...
limit_conn perip 1;
}
}
This commit is contained in:
@@ -514,6 +514,11 @@ if [ $STREAM = YES ]; then
|
||||
STREAM_SRCS="$STREAM_SRCS $STREAM_SSL_SRCS"
|
||||
fi
|
||||
|
||||
if [ $STREAM_LIMIT_CONN = YES ]; then
|
||||
modules="$modules $STREAM_LIMIT_CONN_MODULE"
|
||||
STREAM_SRCS="$STREAM_SRCS $STREAM_LIMIT_CONN_SRCS"
|
||||
fi
|
||||
|
||||
if [ $STREAM_ACCESS = YES ]; then
|
||||
modules="$modules $STREAM_ACCESS_MODULE"
|
||||
STREAM_SRCS="$STREAM_SRCS $STREAM_ACCESS_SRCS"
|
||||
|
||||
Reference in New Issue
Block a user