Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] nginx: add support for stream proxying
@ 2020-01-22 16:29 voidlinux-github
  2020-01-22 18:54 ` [PR PATCH] [Updated] " voidlinux-github
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: voidlinux-github @ 2020-01-22 16:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 644 bytes --]

There is a new pull request by ahesford against master on the void-packages repository

https://github.com/ahesford/void-packages nginx
https://github.com/void-linux/void-packages/pull/18474

nginx: add support for stream proxying
Nginx supports, with the "stream" family of modules, acting as a (reverse) proxy for arbitrary data streams. This PR adds a "stream" build option, enabled by default, that will configure nginx for stream proxying. Offloading encryption responsibilities to an nginx strem proxy represents a good use case for this feature.

A patch file from https://github.com/void-linux/void-packages/pull/18474.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-nginx-18474.patch --]
[-- Type: text/x-diff, Size: 1705 bytes --]

From 5b49dab6659a704f0d03780948a96c5f568c9969 Mon Sep 17 00:00:00 2001
From: "Andrew J. Hesford" <ajh@sideband.org>
Date: Wed, 22 Jan 2020 11:20:09 -0500
Subject: [PATCH] nginx: add support for stream proxying

---
 srcpkgs/nginx/template | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/nginx/template b/srcpkgs/nginx/template
index f8b04e6df6c..374b6fe6c1d 100644
--- a/srcpkgs/nginx/template
+++ b/srcpkgs/nginx/template
@@ -1,8 +1,8 @@
 # Template file for 'nginx'
-reverts="1.17.7_1"
 pkgname=nginx
+reverts="1.17.7_1"
 version=1.16.1
-revision=3
+revision=4
 build_style=gnu-makefile
 hostmakedepends="libressl-devel pcre-devel $(vopt_if geoip geoip-devel)"
 makedepends="${hostmakedepends}"
@@ -32,8 +32,8 @@ make_dirs="/var/log/nginx 0750 root root
  /var/tmp 1777 root root
  /var/tmp/nginx 0750 nginx root"
 
-build_options="geoip"
-build_options_default="geoip"
+build_options="geoip stream"
+build_options_default="geoip stream"
 
 do_configure() {
 	local cfgdir=/etc/nginx
@@ -44,6 +44,14 @@ do_configure() {
 		unset CC CPP LD CFLAGS CPPFLAGS LDFLAGS
 	fi
 
+	local stream_modules="\
+		--with-stream \
+		--with-stream_realip_module \
+		--with-stream_ssl_module \
+		--with-stream_ssl_preread_module \
+		$(vopt_if geoip --with-stream_geoip_module) \
+	"
+
 	./configure --prefix=${cfgdir} \
 		--conf-path=${cfgdir}/nginx.conf \
 		--sbin-path=/usr/bin/nginx \
@@ -67,7 +75,8 @@ do_configure() {
 		--with-http_ssl_module \
 		--with-http_stub_status_module \
 		--with-http_sub_module \
-		$(vopt_if geoip --with-http_geoip_module)
+		$(vopt_if geoip --with-http_geoip_module) \
+		$(vopt_if stream "$stream_modules")
 }
 
 pre_build() {

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-01-25  7:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-22 16:29 [PR PATCH] nginx: add support for stream proxying voidlinux-github
2020-01-22 18:54 ` [PR PATCH] [Updated] " voidlinux-github
2020-01-22 18:55 ` voidlinux-github
2020-01-25  7:50 ` [PR PATCH] [Merged]: " voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).