pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/nginx Add stream-ssl-preread option to nginx



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1b5d5a143ee4
branches:  trunk
changeset: 423586:1b5d5a143ee4
user:      abs <abs%pkgsrc.org@localhost>
date:      Thu Feb 20 23:34:38 2020 +0000

description:
Add stream-ssl-preread option to nginx

Allows nginx to be used as a proxy to share a port between https and
ssh/openvpn or similar

Not enabled by default

diffstat:

 www/nginx/options.mk |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r a16f947a6c1f -r 1b5d5a143ee4 www/nginx/options.mk
--- a/www/nginx/options.mk      Thu Feb 20 22:39:19 2020 +0000
+++ b/www/nginx/options.mk      Thu Feb 20 23:34:38 2020 +0000
@@ -1,11 +1,12 @@
-# $NetBSD: options.mk,v 1.53 2020/02/12 11:32:53 jperkin Exp $
+# $NetBSD: options.mk,v 1.54 2020/02/20 23:34:38 abs Exp $
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.nginx
 PKG_SUPPORTED_OPTIONS=         dav flv gtools inet6 luajit mail-proxy memcache naxsi \
                                pcre push realip ssl sub uwsgi image-filter \
                                debug slice status nginx-autodetect-cflags echo \
                                set-misc headers-more array-var encrypted-session \
-                               form-input perl gzip http2 auth-request secure-link rtmp
+                               form-input perl gzip http2 auth-request secure-link rtmp \
+                               stream-ssl-preread
 PKG_OPTIONS_LEGACY_OPTS+=      v2:http2
 
 PKG_SUGGESTED_OPTIONS= inet6 pcre ssl
@@ -226,6 +227,10 @@
 CONFIGURE_ARGS+=       --with-http_secure_link_module
 .endif
 
+.if !empty(PKG_OPTIONS:Mstream-ssl-preread)
+CONFIGURE_ARGS+=       --with-stream --with-stream_ssl_preread_module
+.endif
+
 .if !empty(PKG_OPTIONS:Mrtmp)
 CONFIGURE_ARGS+=       --add-module=../${RTMP_DISTNAME}
 .endif



Home | Main Index | Thread Index | Old Index