NGINX Unit 1.11.0 Application Server Release

saw the light application server release NGINX Unit 1.11, which develops a solution to ensure the launch of web applications in various programming languages ​​(Python, PHP, Perl, Ruby, Go, JavaScript / Node.js and Java). Under the control of NGINX Unit, several applications in different programming languages ​​can run simultaneously, the launch parameters of which can be changed dynamically without the need to edit configuration files and restart. The code is written in C language and spreads licensed under Apache 2.0. You can get acquainted with the features of NGINX Unit in announcement first release.

In the new version:

  • Built in
    the ability to independently serve static content without contacting an external http server. As the ultimate goal, the transformation of Unit into a full-fledged web server with built-in tools for building web services is noted. To return statics, it is enough to specify the root directory with the distributed files in the settings and, if necessary, determine the missing MIME types:

    "share": "/data/www/example.com"

    "mime_types": {
    "text/plain": [
    readme,
    ".c",
    ".h"
    ],
    "application/msword": ".doc"
    }

  • Support isolation of web application processes using container isolation tools in Linux. In the settings, you can activate different namespaces, enable cgroup restrictions, and match UID / GID in the main environment and the isolated container:

    "namespaces": {
    credential: true
    "pid": true
    network: true
    "mount": false
    uname: true
    cgroup: false
    },

    uidmap: [
    {
    "container": 1000
    "host": 812,
    size: 1
    }
    ],

  • Added built-in WebSocket server implementation for JSC (Java Servlet Container) servlets. In the last release, the WebSocket server was implemented for Node.js.
  • Added support for directly addressing API settings containing "/" characters using their escaping ('%2F'). For example:

    GET /config/settings/http/static/mime_types/text%2Fplain/

Source: opennet.ru

Add a comment