njs 0.4.0 release. Rambler filed a motion to drop the criminal case against Nginx

Nginx project developers published JavaScript language interpreter release β€” njs 0.4.0. The njs interpreter implements the ECMAScript standards and allows you to extend Nginx's request processing capabilities 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 implements the directive js_import for importing JavaScript modules with the implementation of variable or path handlers (location). For example, in the foo.js module, you can define a bar function that can be called in relation to a specific path:

foo.js:

function bar(r) {
r.return(200);
}

export default {bar};

nginx.conf:

js_import foo.js

location /
js_content foo.bar;
}

In the facility r.headersOut added support for headers that include multiple values, for example:

function content(r) {
r.headersOut['Set-Cookie'] = [
'foo=111; Max Age=3600; path=/',
'bar=qqq; Max Age=86400; path=/'
];

r.return(200);
}

Additionally, it can be noted message of the Rambler Group about direction to the investigating authorities of an official petition to terminate criminal caseassociated with Nginx. The request was submitted as part of the execution taken out in December, the decisions of the board of directors of the Rambler Group to transfer the proceedings with Nginx to the civil law field. In addition, it is reported from the termination of the contract with the law firm Lynwood Investments CY Ltd, which initially applied to law enforcement agencies, acting on behalf of Rambler.

Interestingly, despite the termination of the contract, Lynwood Investments CY Ltd retained the right to prove damages and damages in the NGINX case on its own behalf and in its own interests, but has no right to conduct any business on behalf of the Rambler Group. By information from the lawyer of the Center for Digital Rights, Rambler's petition is not valid, so the criminal case cannot be terminated only on the basis of reconciliation of the parties - the decision on the absence of corpus delicti in criminal cases is within the competence of the investigating authorities.

Source: opennet.ru

Add a comment