]> git.kaiwu.me - nginx.git/commit
Stream: support ALPN for proxy_ssl upstream.
authorVadim Zhestikov <v.zhestikov@f5.com>
Mon, 2 Feb 2026 22:46:00 +0000 (14:46 -0800)
committerVadimZhestikov <108960056+VadimZhestikov@users.noreply.github.com>
Fri, 17 Apr 2026 21:16:31 +0000 (14:16 -0700)
commit98fc3bb78e8daef25c3d850c9cba8c2f787fb99e
tree0efe4dbda50e46e41802d02df5e3802c9f5dbc2e
parentd7dd7e9ae4c2110f753cac02fd702eefef9fce16
Stream: support ALPN for proxy_ssl upstream.

Added the proxy_ssl_alpn directive, which sets the list of protocols
to advertise via ALPN during upstream TLS handshakes.  Each argument
is a complex value, so variables are accepted.  In particular,

    proxy_ssl_alpn $ssl_alpn_protocol;

inherits the protocol negotiated in the downstream TLS handshake.

When all evaluated values are empty or absent, no ALPN extension is
sent, equivalent to the directive not being set at all.

Closes #406 on GitHub.
src/stream/ngx_stream_proxy_module.c