On September 19, 2019, the release of the NGINX Unit 1.11.0 application server took place.
Main features:
- The server includes the capability to serve static content independently without contacting an external HTTP server. As a result, the application server is being transformed into a fully-fledged web server service with built-in web service capabilities. To serve content, it is enough to specify the root directory in the settings {
"share": "\/data\/www\/example.com"
}and if necessary, define any missing MIME types {
"mime_types": {
"text\/plain": [
"readme",
".c",
".h"
],"application\/msword": ".doc"
}
}- Support has been added for process isolation using container isolation tools in Linux. Various namespaces can be activated in the configuration file, group limits can be implemented, or GID\/UID of the isolated environment can be mapped to the main {
"namespaces": {
"credential": true,
"pid": true,
"network": true,
"mount": false,
"uname": true,
"cgroup": false
},"uidmap": [
{
"container": 1000,
"host": 812,
"size": 1
}
],"gidmap": [
{
"container": 1000,
"host": 812,
"size": 1
}
]
} - A custom WebSocket implementation has been added for JSC servlets.
- A direct addressing implementation of API settings has been added, containing the character '/', by escaping it with ''. Example:
GET /config/settings/http/static/mime_types/textplain/
- Support has been added for process isolation using container isolation tools in Linux. Various namespaces can be activated in the configuration file, group limits can be implemented, or GID\/UID of the isolated environment can be mapped to the main {
Source: linux.org.ru
