nginx: add option to compile STREAM REAL IP module
Add option to compile STREAM REAL IP module. Closes: #22310 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
parent
d191c3d0c4
commit
bb9d02be03
2 changed files with 8 additions and 1 deletions
|
@ -200,4 +200,9 @@ config NGINX_HTTP_SUB
|
||||||
prompt "Enable HTTP sub module"
|
prompt "Enable HTTP sub module"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
config NGINX_STREAM_REAL_IP
|
||||||
|
bool
|
||||||
|
prompt "Enable STREAM real ip module"
|
||||||
|
default n
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=nginx
|
PKG_NAME:=nginx
|
||||||
PKG_VERSION:=1.25.2
|
PKG_VERSION:=1.25.2
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=nginx-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=nginx-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://nginx.org/download/
|
PKG_SOURCE_URL:=https://nginx.org/download/
|
||||||
|
@ -82,6 +82,7 @@ PKG_CONFIG_DEPENDS := \
|
||||||
CONFIG_NGINX_PCRE \
|
CONFIG_NGINX_PCRE \
|
||||||
CONFIG_NGINX_HTTP_REAL_IP \
|
CONFIG_NGINX_HTTP_REAL_IP \
|
||||||
CONFIG_NGINX_HTTP_SECURE_LINK \
|
CONFIG_NGINX_HTTP_SECURE_LINK \
|
||||||
|
CONFIG_NGINX_STREAM_REAL_IP \
|
||||||
CONFIG_OPENSSL_ENGINE \
|
CONFIG_OPENSSL_ENGINE \
|
||||||
CONFIG_OPENSSL_WITH_NPN \
|
CONFIG_OPENSSL_WITH_NPN \
|
||||||
$(foreach m,$(PKG_MOD_EXTRA),CONFIG_PACKAGE_$(m))
|
$(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_SECURE_LINK),--with-http_secure_link_module) \
|
||||||
$(if $(call IsEnabled,NGINX_HTTP_SUB),--with-http_sub_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 $(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) \
|
$(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)), \
|
$(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)))
|
$(if $(CONFIG_PACKAGE_nginx-mod-$(m)),--add-dynamic-module=$(PKG_BUILD_DIR)/nginx-mod-$(m)))
|
||||||
|
|
Loading…
Reference in a new issue