ngx_http_js_module
./configure --add-module=path-to-njs/nginxhg clone http://hg.nginx.org/njs./configure --add-dynamic-module=path-to-njs/nginx示例配置
js_include http.js;
js_set $foo foo;
js_set $summary summary;
server {
listen 8000;
location / {
add_header X-Foo $foo;
js_content baz;
}
location /summary {
return 200 $summary;
}
}指令
js_include
hls_buffers
js_set
请求与响应参数
原文档
最后更新于