From 14ff3d4f87c049ff4446efe067fbfe85d5ae18ab Mon Sep 17 00:00:00 2001 From: Vladimir Homutov Date: Thu, 18 Jun 2015 14:17:30 +0300 Subject: Stream: connection limiting module. stream { limit_conn_zone $binary_remote_addr zone=perip:1m; limit_conn_log_level error; server { ... limit_conn perip 1; } } --- auto/modules | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'auto/modules') diff --git a/auto/modules b/auto/modules index 82b8bca33..60a060d35 100644 --- a/auto/modules +++ b/auto/modules @@ -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" -- cgit