comparison xml/en/docs/http/ngx_http_js_module.xml @ 2773:a2852750c379

Added fetch directives to js http and stream modules.
author Yaroslav Zhuravlev <yar@nginx.com>
date Thu, 14 Oct 2021 18:53:16 +0100
parents 42fb92e582db
children b6bbdce8c659
comparison
equal deleted inserted replaced
2772:91aaf82442e9 2773:a2852750c379
7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> 7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
8 8
9 <module name="Module ngx_http_js_module" 9 <module name="Module ngx_http_js_module"
10 link="/en/docs/http/ngx_http_js_module.html" 10 link="/en/docs/http/ngx_http_js_module.html"
11 lang="en" 11 lang="en"
12 rev="29"> 12 rev="30">
13 13
14 <section id="summary"> 14 <section id="summary">
15 15
16 <para> 16 <para>
17 The <literal>ngx_http_js_module</literal> module is used to implement 17 The <literal>ngx_http_js_module</literal> module is used to implement
195 195
196 <para> 196 <para>
197 Sets an njs function as a location content handler. 197 Sets an njs function as a location content handler.
198 Since <link doc="../njs/changes.xml" id="njs0.4.0">0.4.0</link>, 198 Since <link doc="../njs/changes.xml" id="njs0.4.0">0.4.0</link>,
199 a module function can be referenced. 199 a module function can be referenced.
200 </para>
201
202 </directive>
203
204
205 <directive name="js_fetch_ciphers">
206 <syntax><value>ciphers</value></syntax>
207 <default>HIGH:!aNULL:!MD5</default>
208 <context>http</context>
209 <context>server</context>
210 <context>location</context>
211 <appeared-in>0.7.0</appeared-in>
212
213 <para>
214 Specifies the enabled ciphers for HTTPS requests
215 with <link doc="../njs/reference.xml" id="ngx_fetch">Fetch API</link>.
216 The ciphers are specified in the format understood by the
217 OpenSSL library.
218 </para>
219
220 <para>
221 The full list can be viewed using the
222 “<command>openssl ciphers</command>” command.
223 </para>
224
225 </directive>
226
227
228 <directive name="js_fetch_protocols">
229 <syntax>
230 [<literal>TLSv1</literal>]
231 [<literal>TLSv1.1</literal>]
232 [<literal>TLSv1.2</literal>]
233 [<literal>TLSv1.3</literal>]</syntax>
234 <default>TLSv1 TLSv1.1 TLSv1.2</default>
235 <context>http</context>
236 <context>server</context>
237 <context>location</context>
238 <appeared-in>0.7.0</appeared-in>
239
240 <para>
241 Enables the specified protocols for HTTPS requests
242 with <link doc="../njs/reference.xml" id="ngx_fetch">Fetch API</link>.
243 </para>
244
245 </directive>
246
247
248 <directive name="js_fetch_trusted_certificate">
249 <syntax><value>file</value></syntax>
250 <default/>
251 <context>http</context>
252 <context>server</context>
253 <context>location</context>
254 <appeared-in>0.7.0</appeared-in>
255
256 <para>
257 Specifies a <value>file</value> with trusted CA certificates in the PEM format
258 used to
259 <link doc="../njs/reference.xml" id="fetch_verify">verify</link>
260 the HTTPS certificate
261 with <link doc="../njs/reference.xml" id="ngx_fetch">Fetch API</link>.
262 </para>
263
264 </directive>
265
266
267 <directive name="js_fetch_verify_depth">
268 <syntax><value>number</value></syntax>
269 <default>100</default>
270 <context>http</context>
271 <context>server</context>
272 <context>location</context>
273 <appeared-in>0.7.0</appeared-in>
274
275 <para>
276 Sets the verification depth in the HTTPS server certificates chain
277 with <link doc="../njs/reference.xml" id="ngx_fetch">Fetch API</link>.
200 </para> 278 </para>
201 279
202 </directive> 280 </directive>
203 281
204 282