Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 735020 - www-servers/nginx is missing a USE flag for building --with-stream only
Summary: www-servers/nginx is missing a USE flag for building --with-stream only
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-01 09:06 UTC by david van rood
Modified: 2022-06-05 08:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description david van rood 2020-08-01 09:06:51 UTC
https://docs.nginx.com/nginx/admin-guide/load-balancer/tcp-udp-load-balancer/ see "prerequisites"

per the ebuild for nginx-1.19.1 in order to enable --with-stream build option you have to enable one of the NGINX_MODULES_STREAM flags, otherwise there is no way to simply turn on that build option.

nginx can handle streams without needing any of the other modules enabled. I got around this by enabling nginx_modules_stream_ssl_preread in package.use. the use case is to merely forward all traffic on a port to another port, even if the traffic is using SSL - bypassing the need to have SSL cert on the machine running nginx (no ssl termination); this is useful if you have a box hosting many domains/subdomains and want to reverse proxy to another host that, for instance, does not have a public IP.

without --with-stream build option, you cannot use the "stream { }" directive in the nginx config files

Suggestion then, is to have simply "stream" or "streams" as a use flag.

Thank you!