Release of nginx 1.17.6 and njs 0.3.7

Created release of the main branch nginx 1.17.6, within which the development of new features continues (in the parallel stable branch branch 1.16 only changes related to fixing critical bugs and vulnerabilities are made).

Key changes:

  • New variables added $proxy_protocol_server_addr and $proxy_protocol_server_port, which contain the server address and port obtained from the PROXY protocol header;
  • The directive has been added limit_conn_dry_run, translates the ngx_http_limit_conn_module to dry run mode, where the number of connections is not limited but counted.
  • In the module ngx_stream_limit_conn_module added variable $limit_conn_status, which stores the result of the connection limit: PASSED, REJECTED, or REJECTED_DRY_RUN;
  • In the module ngx_http_limit_req_module added variable $limit_req_status, which stores the result of the request rate limiting: PASSED, DELAYED, REJECTED, DELAYED_DRY_RUN, or REJECTED_DRY_RUN.

Additionally, it can be noted release njs 0.3.7, a JavaScript language interpreter for the nginx web server. The njs interpreter implements ECMAScript standards and allows extending nginx capabilities for request handling using scripts in configuration. Scripts can be used in the configuration file to define advanced request handling logic, generate configurations, dynamically create responses, modify requests/responses, or quickly create stubs for troubleshooting web applications.

The new release adds support for Object.assign() and Array.prototype.copyWithin() methods. console.time() now supports labels. The code for interacting with external objects and processing JSON data has been redesigned. The console.help() call has been removed from the CLI.

Source: opennet.ru

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