nginx: add option to compile STREAM REAL IP module
authorChristian Marangi <ansuelsmth@gmail.com>
Thu, 5 Oct 2023 14:55:10 +0000 (16:55 +0200)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Sun, 22 Oct 2023 12:28:34 +0000 (14:28 +0200)
Add option to compile STREAM REAL IP module.

Closes: #22310
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
net/nginx/Config_ssl.in
net/nginx/Makefile

index 990a01e813c5831acf8e1aff28ca425621718755..b02166f36d922cdcff042c6c3311a3909ebf1dbc 100644 (file)
@@ -200,4 +200,9 @@ config NGINX_HTTP_SUB
        prompt "Enable HTTP sub module"
        default n
 
+config NGINX_STREAM_REAL_IP
+       bool
+       prompt "Enable STREAM real ip module"
+       default n
+
 endmenu
index 66a0c8713d1d71c1a0d65ffd6facaf42fd422bc1..0accdd0999367a2a71065203f993516cfb775ff5 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=nginx
 PKG_VERSION:=1.25.2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=nginx-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://nginx.org/download/
@@ -82,6 +82,7 @@ PKG_CONFIG_DEPENDS := \
        CONFIG_NGINX_PCRE \
        CONFIG_NGINX_HTTP_REAL_IP \
        CONFIG_NGINX_HTTP_SECURE_LINK \
+       CONFIG_NGINX_STREAM_REAL_IP \
        CONFIG_OPENSSL_ENGINE \
        CONFIG_OPENSSL_WITH_NPN \
        $(foreach m,$(PKG_MOD_EXTRA),CONFIG_PACKAGE_$(m))
@@ -449,6 +450,7 @@ CONFIGURE_ARGS += \
        $(if $(call IsEnabled,NGINX_HTTP_SECURE_LINK),--with-http_secure_link_module) \
        $(if $(call IsEnabled,NGINX_HTTP_SUB),--with-http_sub_module) \
        $(if $(CONFIG_PACKAGE_nginx-mod-stream),--with-stream=dynamic --with-stream_ssl_module --with-stream_ssl_preread_module) \
+       $(if $(call IsEnabled,NGINX_STREAM_REAL_IP),--with-stream_realip_module) \
        $(if $(CONFIG_PACKAGE_nginx-mod-naxsi),--add-dynamic-module=$(PKG_BUILD_DIR)/nginx-mod-naxsi/naxsi_src) \
        $(foreach m,$(filter-out lua-resty-core lua-resty-lrucache naxsi,$(PKG_MOD_EXTRA)), \
                $(if $(CONFIG_PACKAGE_nginx-mod-$(m)),--add-dynamic-module=$(PKG_BUILD_DIR)/nginx-mod-$(m)))