Mercurial > hg > nginx-site
comparison xml/en/docs/stream/ngx_stream_proxy_module.xml @ 2179:962e1adfa032
Documented UDP streams.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Wed, 06 Jun 2018 20:15:49 +0300 |
parents | ca7568f67dee |
children | d765ffffd08c |
comparison
equal
deleted
inserted
replaced
2178:cb431c861670 | 2179:962e1adfa032 |
---|---|
7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | 7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
8 | 8 |
9 <module name="Module ngx_stream_proxy_module" | 9 <module name="Module ngx_stream_proxy_module" |
10 link="/en/docs/stream/ngx_stream_proxy_module.html" | 10 link="/en/docs/stream/ngx_stream_proxy_module.html" |
11 lang="en" | 11 lang="en" |
12 rev="19"> | 12 rev="20"> |
13 | 13 |
14 <section id="summary"> | 14 <section id="summary"> |
15 | 15 |
16 <para> | 16 <para> |
17 The <literal>ngx_stream_proxy_module</literal> module (1.9.0) allows proxying | 17 The <literal>ngx_stream_proxy_module</literal> module (1.9.0) allows proxying |
36 proxy_timeout 1m; | 36 proxy_timeout 1m; |
37 proxy_pass example.com:12345; | 37 proxy_pass example.com:12345; |
38 } | 38 } |
39 | 39 |
40 server { | 40 server { |
41 listen 53 udp; | 41 listen 53 udp reuseport; |
42 proxy_responses 1; | |
43 proxy_timeout 20s; | 42 proxy_timeout 20s; |
44 proxy_pass dns.example.com:53; | 43 proxy_pass dns.example.com:53; |
45 } | 44 } |
46 | 45 |
47 server { | 46 server { |
258 <context>server</context> | 257 <context>server</context> |
259 <appeared-in>1.9.13</appeared-in> | 258 <appeared-in>1.9.13</appeared-in> |
260 | 259 |
261 <para> | 260 <para> |
262 Sets the number of datagrams expected from the proxied server | 261 Sets the number of datagrams expected from the proxied server |
263 in response to the client request | 262 in response to a client datagram |
264 if the <link doc="ngx_stream_core_module.xml" id="udp">UDP</link> | 263 if the <link doc="ngx_stream_core_module.xml" id="udp">UDP</link> |
265 protocol is used. | 264 protocol is used. |
266 By default, the number of datagrams is not limited: | 265 The number serves as a hint for session termination. |
267 the response datagrams will be sent | 266 By default, the number of datagrams is not limited. |
268 until the <link id="proxy_timeout"/> value expires. | |
269 </para> | 267 </para> |
270 | 268 |
271 </directive> | 269 </directive> |
272 | 270 |
273 | 271 |