From c85d6fec217d1b17291779542de20ad77ae68661 Mon Sep 17 00:00:00 2001
From: Pavel Pautov
Date: Fri, 28 Aug 2020 14:10:54 -0700
Subject: Stream: set module.
Adds 'set' directive to the stream server context.
---
auto/modules | 10 ++++++++++
auto/options | 3 +++
2 files changed, 13 insertions(+)
(limited to 'auto')
diff --git a/auto/modules b/auto/modules
index d78e2823a..f1c63f3d5 100644
--- a/auto/modules
+++ b/auto/modules
@@ -1119,6 +1119,16 @@ if [ $STREAM != NO ]; then
. auto/module
fi
+ if [ $STREAM_SET = YES ]; then
+ ngx_module_name=ngx_stream_set_module
+ ngx_module_deps=
+ ngx_module_srcs=src/stream/ngx_stream_set_module.c
+ ngx_module_libs=
+ ngx_module_link=$STREAM_SET
+
+ . auto/module
+ fi
+
if [ $STREAM_UPSTREAM_HASH = YES ]; then
ngx_module_name=ngx_stream_upstream_hash_module
ngx_module_deps=
diff --git a/auto/options b/auto/options
index 521c9768d..0b21def27 100644
--- a/auto/options
+++ b/auto/options
@@ -124,6 +124,7 @@ STREAM_GEOIP=NO
STREAM_MAP=YES
STREAM_SPLIT_CLIENTS=YES
STREAM_RETURN=YES
+STREAM_SET=YES
STREAM_UPSTREAM_HASH=YES
STREAM_UPSTREAM_LEAST_CONN=YES
STREAM_UPSTREAM_RANDOM=YES
@@ -324,6 +325,7 @@ use the \"--with-mail_ssl_module\" option instead"
--without-stream_split_clients_module)
STREAM_SPLIT_CLIENTS=NO ;;
--without-stream_return_module) STREAM_RETURN=NO ;;
+ --without-stream_set_module) STREAM_SET=NO ;;
--without-stream_upstream_hash_module)
STREAM_UPSTREAM_HASH=NO ;;
--without-stream_upstream_least_conn_module)
@@ -538,6 +540,7 @@ cat << END
--without-stream_split_clients_module
disable ngx_stream_split_clients_module
--without-stream_return_module disable ngx_stream_return_module
+ --without-stream_set_module disable ngx_stream_set_module
--without-stream_upstream_hash_module
disable ngx_stream_upstream_hash_module
--without-stream_upstream_least_conn_module
--
cgit