Mercurial > hg > nginx-site
diff xml/en/docs/stream/ngx_stream_js_module.xml @ 2882:986e1f930e3b
Documented server, location, if contexts for some js directives.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Thu, 18 Aug 2022 15:44:39 +0100 |
parents | fd8ec06ceafa |
children | 9719a0184a67 |
line wrap: on
line diff
--- a/xml/en/docs/stream/ngx_stream_js_module.xml Thu Aug 18 15:28:45 2022 +0100 +++ b/xml/en/docs/stream/ngx_stream_js_module.xml Thu Aug 18 15:44:39 2022 +0100 @@ -9,7 +9,7 @@ <module name="Module ngx_stream_js_module" link="/en/docs/stream/ngx_stream_js_module.html" lang="en" - rev="32"> + rev="33"> <section id="summary"> @@ -381,6 +381,7 @@ <value>export_name from module.js</value></syntax> <default/> <context>stream</context> +<context>server</context> <appeared-in>0.4.0</appeared-in> <para> @@ -402,6 +403,14 @@ Several <literal>js_import</literal> directives can be specified. </para> +<para> +<note> +The directive can be specified on the +<literal>server</literal> level +since <link doc="../njs/changes.xml" id="njs0.7.7">0.7.7</link>. +</note> +</para> + </directive> @@ -444,12 +453,21 @@ <value>path</value></syntax> <default/> <context>stream</context> +<context>server</context> <appeared-in>0.3.0</appeared-in> <para> Sets an additional path for njs modules. </para> +<para> +<note> +The directive can be specified on the +<literal>server</literal> level +since <link doc="../njs/changes.xml" id="njs0.7.7">0.7.7</link>. +</note> +</para> + </directive> @@ -527,6 +545,7 @@ <value>module.function</value></syntax> <default/> <context>stream</context> +<context>server</context> <para> Sets an njs <literal>function</literal> @@ -563,6 +582,14 @@ </note> </para> +<para> +<note> +The directive can be specified on the +<literal>server</literal> level +since <link doc="../njs/changes.xml" id="njs0.7.7">0.7.7</link>. +</note> +</para> + </directive> @@ -570,6 +597,7 @@ <syntax><value>$variable</value> [<value>value</value>]</syntax> <default/> <context>stream</context> +<context>server</context> <appeared-in>0.5.3</appeared-in> <para> @@ -579,6 +607,14 @@ The value can contain text, variables, and their combination. </para> +<para> +<note> +The directive can be specified on the +<literal>server</literal> level +since <link doc="../njs/changes.xml" id="njs0.7.7">0.7.7</link>. +</note> +</para> + </directive> </section>