The nginx project has released the JavaScript module njs 1.0.0.

The release of njs 1.0.0 has been published, a module for integrating the JavaScript interpreter into the nginx http server. Njs allows the use of JavaScript scripts in configuration files to extend nginx capabilities. Scripts can be used to define advanced request processing logic, configuration generation, dynamic response generation, request/response modification, or quickly creating stubs for troubleshooting web applications. The project's code is written in C and is distributed under the BSD license.

In the new release, the proprietary JavaScript engine njs has been moved to the deprecated category. The recommended primary engine to use is QuickJS, created by Fabrice Bellard. Noteworthy new features in version 1.0.0 include stricter request validation in the ngx.fetch() method and unification of exception handling classes.

Source: opennet.ru

Buy reliable website hosting with DDoS protection, VPS VDS servers 🔥 Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster