Mercurial > hg > nginx-site
changeset 2600:2fd28cd4f2f8
Added set module for stream.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 29 Sep 2020 16:10:13 +0100 |
parents | 5c5a36560f97 |
children | 5528961da54d |
files | xml/en/GNUmakefile xml/en/docs/index.xml xml/en/docs/stream/ngx_stream_set_module.xml xml/en/docs/stream/stream_processing.xml xml/ru/GNUmakefile xml/ru/docs/index.xml xml/ru/docs/stream/ngx_stream_set_module.xml xml/ru/docs/stream/stream_processing.xml |
diffstat | 8 files changed, 133 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/GNUmakefile Tue Sep 29 15:52:05 2020 +0100 +++ b/xml/en/GNUmakefile Tue Sep 29 16:10:13 2020 +0100 @@ -113,6 +113,7 @@ stream/ngx_stream_proxy_module \ stream/ngx_stream_realip_module \ stream/ngx_stream_return_module \ + stream/ngx_stream_set_module \ stream/ngx_stream_split_clients_module \ stream/ngx_stream_ssl_module \ stream/ngx_stream_ssl_preread_module \
--- a/xml/en/docs/index.xml Tue Sep 29 15:52:05 2020 +0100 +++ b/xml/en/docs/index.xml Tue Sep 29 16:10:13 2020 +0100 @@ -8,7 +8,7 @@ <article name="nginx documentation" link="/en/docs/" lang="en" - rev="46" + rev="47" toc="no"> @@ -597,6 +597,11 @@ </listitem> <listitem> +<link doc="stream/ngx_stream_set_module.xml"> +ngx_stream_set_module</link> +</listitem> + +<listitem> <link doc="stream/ngx_stream_split_clients_module.xml"> ngx_stream_split_clients_module</link> </listitem>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xml/en/docs/stream/ngx_stream_set_module.xml Tue Sep 29 16:10:13 2020 +0100 @@ -0,0 +1,54 @@ +<?xml version="1.0"?> + +<!-- + Copyright (C) Nginx, Inc. + --> + +<!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> + +<module name="Module ngx_stream_set_module" + link="/en/docs/stream/ngx_stream_set_module.html" + lang="en" + rev="1"> + +<section id="summary"> + +<para> +The <literal>ngx_stream_set_module</literal> module (1.19.3) allows +setting a value for a variable. +</para> + +</section> + + +<section id="example" name="Example Configuration"> + +<para> +<example> +server { + listen 12345; + set $true 1; +} +</example> +</para> + +</section> + + +<section id="directives" name="Directives"> + +<directive name="set"> +<syntax><value>$variable</value> <value>value</value></syntax> +<default/> +<context>server</context> + +<para> +Sets a <value>value</value> for the specified <value>variable</value>. +The <value>value</value> can contain text, variables, and their combination. +</para> + +</directive> + +</section> + +</module>
--- a/xml/en/docs/stream/stream_processing.xml Tue Sep 29 15:52:05 2020 +0100 +++ b/xml/en/docs/stream/stream_processing.xml Tue Sep 29 16:10:13 2020 +0100 @@ -7,7 +7,7 @@ <article name="How nginx processes a TCP/UDP session" link="/en/docs/stream/stream_processing.html" lang="en" - rev="2"> + rev="3"> <section> @@ -31,8 +31,11 @@ </tag-name> <tag-desc> Preliminary check for access. -The <link doc="ngx_stream_limit_conn_module.xml">ngx_stream_limit_conn_module</link> -module is invoked at this phase. +The +<link doc="ngx_stream_limit_conn_module.xml">ngx_stream_limit_conn_module</link> +and +<link doc="ngx_stream_set_module.xml">ngx_stream_set_module</link> +modules are invoked at this phase. </tag-desc> <tag-name id="access_phase">
--- a/xml/ru/GNUmakefile Tue Sep 29 15:52:05 2020 +0100 +++ b/xml/ru/GNUmakefile Tue Sep 29 16:10:13 2020 +0100 @@ -99,6 +99,7 @@ stream/ngx_stream_proxy_module \ stream/ngx_stream_realip_module \ stream/ngx_stream_return_module \ + stream/ngx_stream_set_module \ stream/ngx_stream_split_clients_module \ stream/ngx_stream_ssl_module \ stream/ngx_stream_ssl_preread_module \
--- a/xml/ru/docs/index.xml Tue Sep 29 15:52:05 2020 +0100 +++ b/xml/ru/docs/index.xml Tue Sep 29 16:10:13 2020 +0100 @@ -8,7 +8,7 @@ <article name="nginx: документация" link="/ru/docs/" lang="ru" - rev="46" + rev="47" toc="no"> @@ -602,6 +602,11 @@ </listitem> <listitem> +<link doc="stream/ngx_stream_set_module.xml"> +ngx_stream_set_module</link> +</listitem> + +<listitem> <link doc="stream/ngx_stream_split_clients_module.xml"> ngx_stream_split_clients_module</link> </listitem>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xml/ru/docs/stream/ngx_stream_set_module.xml Tue Sep 29 16:10:13 2020 +0100 @@ -0,0 +1,54 @@ +<?xml version="1.0"?> + +<!-- + Copyright (C) Nginx, Inc. + --> + +<!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> + +<module name="Модуль ngx_stream_set_module" + link="/ru/docs/stream/ngx_stream_set_module.html" + lang="ru" + rev="1"> + +<section id="summary"> + +<para> +Модуль <literal>ngx_stream_set_module</literal> (1.19.3) позволяет +устанавливать значение переменной. +</para> + +</section> + + +<section id="example" name="Пример конфигурации"> + +<para> +<example> +server { + listen 12345; + set $true 1; +} +</example> +</para> + +</section> + + +<section id="directives" name="Директивы"> + +<directive name="set"> +<syntax><value>$переменная</value> <value>значение</value></syntax> +<default/> +<context>server</context> + +<para> +Устанавливает значение указанной переменной. +В качестве значения можно использовать текст, переменные и их комбинации. +</para> + +</directive> + +</section> + +</module>
--- a/xml/ru/docs/stream/stream_processing.xml Tue Sep 29 15:52:05 2020 +0100 +++ b/xml/ru/docs/stream/stream_processing.xml Tue Sep 29 16:10:13 2020 +0100 @@ -7,7 +7,7 @@ <article name="Как nginx обрабатывает TCP/UDP-сессии" link="/ru/docs/stream/stream_processing.html" lang="ru" - rev="2"> + rev="3"> <section> @@ -31,8 +31,10 @@ </tag-name> <tag-desc> Предварительная проверка доступа. -В этой фазе выполняется модуль -<link doc="ngx_stream_limit_conn_module.xml">ngx_stream_limit_conn_module</link>. +В этой фазе выполняются модули +<link doc="ngx_stream_limit_conn_module.xml">ngx_stream_limit_conn_module</link> +и +<link doc="ngx_stream_set_module.xml">ngx_stream_set_module</link>. </tag-desc> <tag-name id="access_phase">