Njs Utility not working

2022-04-05 Thread
Hi, i'm trying to build only njs command-line utility following http://nginx.org/en/docs/njs/install.html, but the final njs does not work as expected. See this mail's attached file to find out how i was trying. uname -a Linux localhost.localdomain 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:

Re: Njs Utility not working

2022-04-05 Thread
e + using OpenSSL library: -lcrypto njs build dir: build njs CLI: build/njs | | 王明君 | | wmjhappy...@126.com | On 4/6/2022 09:51,Dmitry Volyntsev wrote: Hi, Please attach the configure output. If njs CLI was built successfully, but the binary does not work in terminal mode. The reason is libread

Njs - r.variables does not contain variables declared by js_var

2022-04-06 Thread
Hi, sorry to bother again ~ I was trying to access variables declared using js_var but failed. Confused why is that. This is a test demo, but actually i have a massive nginx config file that i want to minify using njs, and under which circumstance i need the js script to have access to variab