changeset 2835:b64410025027

Updated docs for the upcoming NGINX Plus release.
author Yaroslav Zhuravlev <yar@nginx.com>
date Sun, 13 Feb 2022 17:17:07 +0000
parents 5bbae5b15948
children 9df61c67bdaf
files xml/en/docs/http/ngx_http_auth_jwt_module.xml xml/ru/docs/http/ngx_http_auth_jwt_module.xml
diffstat 2 files changed, 39 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_auth_jwt_module.xml
+++ b/xml/en/docs/http/ngx_http_auth_jwt_module.xml
@@ -229,6 +229,26 @@ and the result was undefined for arrays.
 </directive>
 
 
+<directive name="auth_jwt_key_cache">
+<syntax><value>time</value></syntax>
+<default>0</default>
+<context>http</context>
+<context>server</context>
+<context>location</context>
+<appeared-in>1.21.4</appeared-in>
+
+<para>
+Enables or disables caching of keys
+obtained from a <link id="auth_jwt_key_file">file</link>
+or from a <link id="auth_jwt_key_request">subrequest</link>,
+and sets caching time for them.
+Caching of keys obtained from variables is not supported.
+By default, caching of keys is disabled.
+</para>
+
+</directive>
+
+
 <directive name="auth_jwt_key_file">
 <syntax><value>file</value></syntax>
 <default/>
--- a/xml/ru/docs/http/ngx_http_auth_jwt_module.xml
+++ b/xml/ru/docs/http/ngx_http_auth_jwt_module.xml
@@ -228,6 +228,25 @@ auth_jwt_claim_set $job info "job title"
 
 </directive>
 
+<directive name="auth_jwt_key_cache">
+<syntax><value> время</value></syntax>
+<default>0</default>
+<context>http</context>
+<context>server</context>
+<context>location</context>
+<appeared-in>1.21.4</appeared-in>
+
+<para>
+Разрешает или запрещает кэширование ключей,
+полученных из <link id="auth_jwt_key_file">файла</link> или из
+<link id="auth_jwt_key_request">подзапроса</link>,
+и задаёт время их кэширования.
+Кэширование ключей, полученных из переменных, не поддерживается.
+По умолчанию кэширование ключей выключено.
+</para>
+
+</directive>
+
 
 <directive name="auth_jwt_key_file">
 <syntax><value>файл</value></syntax>