[Buildroot] [git commit] package/nginx: add stream realip option
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Date: 2020-09-20 13:31:40
Subsystem:
the rest · Maintainer:
Linus Torvalds
commit: https://git.buildroot.net/buildroot/commit/?id=456aa0fb7e8d31e6bfbad4353264ca53c574f764 branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master stream realip is available since version 1.11.4 and https://github.com/nginx/nginx/commit/fe2774a9d689fa1bf201dd0e89449e3d9e4ad926 Signed-off-by: Fabrice Fontaine <redacted> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> --- package/nginx/Config.in | 5 +++++ package/nginx/nginx.mk | 4 ++++ 2 files changed, 9 insertions(+)
diff --git a/package/nginx/Config.in b/package/nginx/Config.in
index 6dba7e0ead..507b4dcfb4 100644
--- a/package/nginx/Config.in
+++ b/package/nginx/Config.in@@ -328,6 +328,11 @@ config BR2_PACKAGE_NGINX_STREAM if BR2_PACKAGE_NGINX_STREAM +config BR2_PACKAGE_NGINX_STREAM_REALIP_MODULE + bool "ngx_stream_realip_module" + help + Enable ngx_stream_realip_module + config BR2_PACKAGE_NGINX_STREAM_SSL_MODULE bool "ngx_stream_ssl_module" select BR2_PACKAGE_OPENSSL
diff --git a/package/nginx/nginx.mk b/package/nginx/nginx.mk
index 6b0b318247..9696d6b37d 100644
--- a/package/nginx/nginx.mk
+++ b/package/nginx/nginx.mk@@ -224,6 +224,10 @@ endif # BR2_PACKAGE_NGINX_MAIL ifeq ($(BR2_PACKAGE_NGINX_STREAM),y) NGINX_CONF_OPTS += --with-stream +ifeq ($(BR2_PACKAGE_NGINX_STREAM_REALIP_MODULE),y) +NGINX_CONF_OPTS += --with-stream_realip_module +endif + ifeq ($(BR2_PACKAGE_NGINX_STREAM_SSL_MODULE),y) NGINX_DEPENDENCIES += openssl NGINX_CONF_OPTS += --with-stream_ssl_module