@@ -382,6 +382,8 @@ static char *ngx_http_js_content(ngx_conf_t *cf, ngx_command_t *cmd,
382382 void * conf );
383383static char * ngx_http_js_shared_dict_zone (ngx_conf_t * cf , ngx_command_t * cmd ,
384384 void * conf );
385+ static char * ngx_http_js_shared_array_zone (ngx_conf_t * cf , ngx_command_t * cmd ,
386+ void * conf );
385387static char * ngx_http_js_fetch_proxy (ngx_conf_t * cf , ngx_command_t * cmd ,
386388 void * conf );
387389static char * ngx_http_js_body_filter_set (ngx_conf_t * cf , ngx_command_t * cmd ,
@@ -569,6 +571,13 @@ static ngx_command_t ngx_http_js_commands[] = {
569571 0 ,
570572 NULL },
571573
574+ { ngx_string ("js_shared_array_zone" ),
575+ NGX_HTTP_MAIN_CONF |NGX_CONF_TAKE1 ,
576+ ngx_http_js_shared_array_zone ,
577+ 0 ,
578+ 0 ,
579+ NULL },
580+
572581 { ngx_string ("js_fetch_keepalive" ),
573582 NGX_HTTP_MAIN_CONF |NGX_HTTP_SRV_CONF |NGX_HTTP_LOC_CONF |NGX_CONF_TAKE1 ,
574583 ngx_conf_set_num_slot ,
@@ -1079,6 +1088,7 @@ njs_module_t *njs_http_js_addon_modules[] = {
10791088 & ngx_js_ngx_module ,
10801089 & ngx_js_fetch_module ,
10811090 & ngx_js_shared_dict_module ,
1091+ & ngx_js_shared_array_module ,
10821092#ifdef NJS_HAVE_OPENSSL
10831093 & njs_webcrypto_module ,
10841094#endif
@@ -1219,6 +1229,7 @@ static JSClassDef ngx_http_qjs_headers_out_class = {
12191229qjs_module_t * njs_http_qjs_addon_modules [] = {
12201230 & ngx_qjs_ngx_module ,
12211231 & ngx_qjs_ngx_shared_dict_module ,
1232+ & ngx_qjs_ngx_shared_array_module ,
12221233#ifdef NJS_HAVE_QUICKJS
12231234 & ngx_qjs_ngx_fetch_module ,
12241235#endif
@@ -8217,6 +8228,14 @@ ngx_http_js_shared_dict_zone(ngx_conf_t *cf, ngx_command_t *cmd,
82178228}
82188229
82198230
8231+ static char *
8232+ ngx_http_js_shared_array_zone (ngx_conf_t * cf , ngx_command_t * cmd ,
8233+ void * conf )
8234+ {
8235+ return ngx_js_shared_array_zone (cf , cmd , conf , & ngx_http_js_module );
8236+ }
8237+
8238+
82208239static char *
82218240ngx_http_js_body_filter_set (ngx_conf_t * cf , ngx_command_t * cmd , void * conf )
82228241{
0 commit comments