[njs] Disabled js_set at server{} and location{} levels.

Roman Arutyunyan arut at nginx.com
Tue Dec 13 11:06:15 UTC 2016


details:   http://hg.nginx.org/njs/rev/b54508367550
branches:  
changeset: 281:b54508367550
user:      Roman Arutyunyan <arut at nginx.com>
date:      Tue Dec 13 14:04:46 2016 +0300
description:
Disabled js_set at server{} and location{} levels.

diffstat:

 nginx/ngx_http_js_module.c   |  2 +-
 nginx/ngx_stream_js_module.c |  2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r db0d8e2a4928 -r b54508367550 nginx/ngx_http_js_module.c
--- a/nginx/ngx_http_js_module.c	Thu Dec 08 01:52:41 2016 +0300
+++ b/nginx/ngx_http_js_module.c	Tue Dec 13 14:04:46 2016 +0300
@@ -137,7 +137,7 @@ static ngx_command_t  ngx_http_js_comman
       NULL },
 
     { ngx_string("js_set"),
-      NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE2,
+      NGX_HTTP_MAIN_CONF|NGX_CONF_TAKE2,
       ngx_http_js_set,
       NGX_HTTP_LOC_CONF_OFFSET,
       0,
diff -r db0d8e2a4928 -r b54508367550 nginx/ngx_stream_js_module.c
--- a/nginx/ngx_stream_js_module.c	Thu Dec 08 01:52:41 2016 +0300
+++ b/nginx/ngx_stream_js_module.c	Tue Dec 13 14:04:46 2016 +0300
@@ -112,7 +112,7 @@ static ngx_command_t  ngx_stream_js_comm
       NULL },
 
     { ngx_string("js_set"),
-      NGX_STREAM_MAIN_CONF|NGX_STREAM_SRV_CONF|NGX_CONF_TAKE2,
+      NGX_STREAM_MAIN_CONF|NGX_CONF_TAKE2,
       ngx_stream_js_set,
       NGX_STREAM_SRV_CONF_OFFSET,
       0,


More information about the nginx-devel mailing list