Release of nginx 1.17.6 and njs 0.3.7

Formed master branch release nginx 1.17.6, within which the development of new features continues (in a parallel supported stable branch 1.16 only changes related to the elimination of serious errors and vulnerabilities are made).

All changes:

  • Added new variables $proxy_protocol_server_addr ΠΈ $proxy_protocol_server_port, which contain the server address and port obtained from the PROXY protocol header;
  • Directive added limit_conn_dry_run, which puts the ngx_http_limit_conn_module module into trial run mode, in which the number of connections is not limited, but counted.
  • In the module ngx_stream_limit_conn_module added $limit_conn_status variable, which stores the result of limiting the number of connections: PASSED, REJECTED or REJECTED_DRY_RUN;
  • In the module ngx_http_limit_req_module $limit_req_status variable has been added, which stores the result of request rate limiting: PASSED, DELAYED, REJECTED, DELAYED_DRY_RUN or REJECTED_DRY_RUN.

Additionally, it can be noted issue njs 0.3.7, a JavaScript interpreter for the nginx web server. The njs interpreter implements the ECMAScript standards and allows you to extend nginx's ability to process requests using scripts in the configuration. Scripts can be used in a configuration file to define advanced request processing logic, generate a configuration, dynamically generate a response, modify a request/response, or quickly create problem-solving stubs in web applications.

The new release adds support for the Object.assign() and Array.prototype.copyWithin() methods. Console.time() provides the ability to use labels. Redesigned code for interacting with external objects and processing data in JSON format. The console.help() call has been removed from the CLI.

Source: opennet.ru

Add a comment