nginx: add stream SSL and stream SSL preread support
authorDeng Qingfang <redacted>
Sun, 16 Dec 2018 16:29:04 +0000 (00:29 +0800)
committerDeng Qingfang <redacted>
Sun, 16 Dec 2018 16:29:04 +0000 (00:29 +0800)
Signed-off-by: Deng Qingfang <redacted>
net/nginx/Config.in
net/nginx/Config_ssl.in
net/nginx/Makefile

index 3bb1b03a17833ae60a00721f5a71b607c8518610..55c24ea7a8d9fe512e21eddac766b66b3f5da317 100644 (file)
@@ -228,6 +228,22 @@ config NGINX_STREAM_CORE_MODULE
                Add support for NGINX request streaming.
        default n
 
+config NGINX_STREAM_SSL_MODULE
+       bool
+       prompt "Enable stream support with SSL/TLS termination"
+       depends on NGINX_STREAM_CORE_MODULE
+       help
+               Add support for NGINX request streaming with SSL/TLS termination.
+       default n
+
+config NGINX_STREAM_SSL_PREREAD_MODULE
+       bool
+       prompt "Enable stream support with SSL/TLS pre-read"
+       depends on NGINX_STREAM_CORE_MODULE
+       help
+               Add support for NGINX request streaming using information from the ClientHello message without terminating SSL/TLS.
+       default n
+
 config NGINX_RTMP_MODULE
        bool
        prompt "Enable RTMP module"
index 9325fba51affa9d3938c29aa12e550275a336ec7..f889cc3ec465ecfc03cd8978975d808e7a6f1618 100644 (file)
@@ -221,6 +221,22 @@ config NGINX_STREAM_CORE_MODULE
                Add support for NGINX request streaming.
        default n
 
+config NGINX_STREAM_SSL_MODULE
+       bool
+       prompt "Enable stream support with SSL/TLS termination"
+       depends on NGINX_STREAM_CORE_MODULE
+       help
+               Add support for NGINX request streaming with SSL/TLS termination.
+       default n
+
+config NGINX_STREAM_SSL_PREREAD_MODULE
+       bool
+       prompt "Enable stream support with SSL/TLS pre-read"
+       depends on NGINX_STREAM_CORE_MODULE
+       help
+               Add support for NGINX request streaming using information from the ClientHello message without terminating SSL/TLS.
+       default n
+
 config NGINX_RTMP_MODULE
        bool
        prompt "Enable RTMP module"
index 31448b1beb91dffb91ccca1122eb3c9ad7937af4..23307eea55b631840fefe43449ea49baf11bc774 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=nginx
 PKG_VERSION:=1.15.7
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=nginx-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://nginx.org/download/
@@ -67,6 +67,8 @@ PKG_CONFIG_DEPENDS := \
        CONFIG_NGINX_HTTP_BROTLI \
        CONFIG_NGINX_HEADERS_MORE \
        CONFIG_NGINX_STREAM_CORE_MODULE \
+       CONFIG_NGINX_STREAM_SSL_MODULE \
+       CONFIG_NGINX_STREAM_SSL_PREREAD_MODULE \
        CONFIG_NGINX_RTMP_MODULE \
        CONFIG_NGINX_TS_MODULE \
 
@@ -268,6 +270,12 @@ ifneq ($(BUILD_VARIANT),all-module)
   ifeq ($(CONFIG_NGINX_STREAM_CORE_MODULE),y)
     ADDITIONAL_MODULES += --with-stream
   endif
+  ifeq ($(CONFIG_NGINX_STREAM_SSL_MODULE),y)
+    ADDITIONAL_MODULES += --with-stream_ssl_module
+  endif
+  ifeq ($(CONFIG_NGINX_STREAM_SSL_PREREAD_MODULE),y)
+    ADDITIONAL_MODULES += --with-stream_ssl_preread_module
+  endif
   ifeq ($(CONFIG_NGINX_HEADERS_MORE),y)
     ADDITIONAL_MODULES += --add-module=$(PKG_BUILD_DIR)/nginx-headers-more
   endif
@@ -293,7 +301,7 @@ else
        --with-http_dav_module --add-module=$(PKG_BUILD_DIR)/nginx-dav-ext-module \
        --with-http_auth_request_module --with-http_v2_module --with-http_realip_module \
        --with-http_secure_link_module --with-http_sub_module --add-module=$(PKG_BUILD_DIR)/nginx-headers-more \
-       --with-stream \
+       --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module \
        --add-module=$(PKG_BUILD_DIR)/nginx-brotli --add-module=$(PKG_BUILD_DIR)/nginx-rtmp \
        --add-module=$(PKG_BUILD_DIR)/nginx-ts
   config_files += koi-utf koi-win win-utf fastcgi_params 
git clone https://git.99rst.org/PROJECT