# HG changeset patch # User Yaroslav Zhuravlev # Date 1635801384 0 # Node ID a281f61b5ad859739eca422550430a1b389c5ebc # Parent d164091873143ab144b7ce90a670927743bf45a1 Documented the ssl_alpn directive. diff -r d16409187314 -r a281f61b5ad8 xml/en/docs/stream/ngx_stream_ssl_module.xml --- a/xml/en/docs/stream/ngx_stream_ssl_module.xml Mon Nov 01 21:06:06 2021 +0000 +++ b/xml/en/docs/stream/ngx_stream_ssl_module.xml Mon Nov 01 21:16:24 2021 +0000 @@ -9,7 +9,7 @@ + rev="27">
@@ -79,6 +79,35 @@
+ +protocol ... + +stream +server +1.21.4 + + +Specifies the list of supported +ALPN protocols. +One of the protocols must be +negotiated if the client uses ALPN: + +map $ssl_alpn_protocol $proxy { + h2 127.0.0.1:8001; + http/1.1 127.0.0.1:8002; +} + +server { + listen 12346; + proxy_pass $proxy; + ssl_alpn h2 http/1.1; +} + + + + + + file diff -r d16409187314 -r a281f61b5ad8 xml/ru/docs/stream/ngx_stream_ssl_module.xml --- a/xml/ru/docs/stream/ngx_stream_ssl_module.xml Mon Nov 01 21:06:06 2021 +0000 +++ b/xml/ru/docs/stream/ngx_stream_ssl_module.xml Mon Nov 01 21:16:24 2021 +0000 @@ -9,7 +9,7 @@ + rev="27">
@@ -79,6 +79,36 @@
+ +протокол ... + +stream +server +1.21.4 + + +Задаёт список поддерживаемых +протоколов +ALPN. +Один из протоколов должен быть +согласован, если клиент использует ALPN: + +map $ssl_alpn_protocol $proxy { + h2 127.0.0.1:8001; + http/1.1 127.0.0.1:8002; +} + +server { + listen 12346; + proxy_pass $proxy; + ssl_alpn h2 http/1.1; +} + + + + + + файл