diff --git a/net/nginx/Config_ssl.in b/net/nginx/Config_ssl.in index 990a01e813..b02166f36d 100644 --- a/net/nginx/Config_ssl.in +++ b/net/nginx/Config_ssl.in @@ -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 diff --git a/net/nginx/Makefile b/net/nginx/Makefile index 66a0c8713d..0accdd0999 100644 --- a/net/nginx/Makefile +++ b/net/nginx/Makefile @@ -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)))