package/nginx: add stream realip option
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 20 Sep 2020 08:13:52 +0000 (10:13 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 20 Sep 2020 13:31:40 +0000 (15:31 +0200)
stream realip is available since version 1.11.4 and
https://github.com/nginx/nginx/commit/fe2774a9d689fa1bf201dd0e89449e3d9e4ad926

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/nginx/Config.in
package/nginx/nginx.mk

index 6dba7e0ead9df0be6eb51af7b76bb55d40006d5d..507b4dcfb4469084a99d46d4982ac01917104e94 100644 (file)
@@ -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
index 6b0b318247f8400477a2bd7d117bbabf9f8c9da2..9696d6b37dd444046ed6568d75aee30c2c7fe5ed 100644 (file)
@@ -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