diff xml/en/docs/stream/ngx_stream_keyval_module.xml @ 2082:fee7627f6a5a

Updated docs for the upcoming NGINX Plus release.
author Ruslan Ermilov <ru@nginx.com>
date Mon, 11 Dec 2017 12:13:09 +0300
parents xml/en/docs/http/ngx_http_keyval_module.xml@5382bfa8a770
children e1337bf9f63b
line wrap: on
line diff
copy from xml/en/docs/http/ngx_http_keyval_module.xml
copy to xml/en/docs/stream/ngx_stream_keyval_module.xml
--- a/xml/en/docs/http/ngx_http_keyval_module.xml
+++ b/xml/en/docs/stream/ngx_stream_keyval_module.xml
@@ -6,17 +6,17 @@
 
 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
 
-<module name="Module ngx_http_keyval_module"
-        link="/en/docs/http/ngx_http_keyval_module.html"
+<module name="Module ngx_stream_keyval_module"
+        link="/en/docs/stream/ngx_stream_keyval_module.html"
         lang="en"
-        rev="2">
+        rev="1">
 
 <section id="summary">
 
 <para>
-The <literal>ngx_http_keyval_module</literal> module (1.13.3) creates variables
+The <literal>ngx_stream_keyval_module</literal> module (1.13.7) creates variables
 with values taken from key-value pairs managed by the
-<link doc="ngx_http_api_module.xml" id="http_keyvals_">API</link>.
+<link doc="../http/ngx_http_api_module.xml" id="stream_keyvals_">API</link>.
 </para>
 
 <para>
@@ -35,20 +35,26 @@ This module is available as part of our
 <example>
 http {
 
-    keyval_zone zone=one:32k state=one.keyval;
-    keyval $arg_text $text zone=one;
-    ...
     server {
         ...
-        location / {
-            return 200 $text;
-        }
-
         location /api {
             api write=on;
         }
     }
 }
+
+stream {
+
+    keyval_zone zone=one:32k state=one.keyval;
+    keyval      $ssl_server_name $name zone=one;
+
+    server {
+        listen              12345 ssl;
+        proxy_pass          $name;
+        ssl_certificate     /usr/local/nginx/conf/cert.pem;
+        ssl_certificate_key /usr/local/nginx/conf/cert.key;
+    }
+}
 </example>
 </para>
 
@@ -63,7 +69,7 @@ http {
     <value>$variable</value>
     <literal>zone</literal>=<value>name</value></syntax>
 <default/>
-<context>http</context>
+<context>stream</context>
 
 <para>
 Creates a new <value>$variable</value> whose value
@@ -81,13 +87,13 @@ specified by the <literal>zone</literal>
     <literal>zone</literal>=<value>name</value>:<value>size</value>
     [<literal>state</literal>=<value>file</value>]</syntax>
 <default/>
-<context>http</context>
+<context>stream</context>
 
 <para>
 Sets the <value>name</value> and <value>size</value> of the shared memory zone
 that keeps the key-value database.
 Key-value pairs are managed by the
-<link doc="ngx_http_api_module.xml" id="http_keyvals_">API</link>.
+<link doc="ngx_http_api_module.xml" id="stream_keyvals_">API</link>.
 </para>
 
 <para>