release of the application server , as part of which a solution is developed to enable the launch of web applications in various programming languages (Python, PHP, Perl, Ruby, Go, JavaScript/Node.js, and Java). Under NGINX Unit, multiple applications in different programming languages can run simultaneously, with launch parameters that can be dynamically changed without the need to edit configuration files or restart. The code is written in C and is licensed under Apache 2.0. You can explore the features of NGINX Unit at the first release.
In the new version:
- Isolation mode implemented for limiting application access to a specific part of the file system.To change the root of the filesystem visible to the application, the pivot_root() call is used, which, unlike the unsafe system call chroot(), not only shifts the root of the filesystem but also utilizes namespace-level isolation, similar to what is used in containers. Moreover, in addition to the specifically indicated application directory, Unit also automatically mounts all language-specific dependencies into the isolated filesystem tree (this works only for a limited number of languages).
{
"type": "python 2.7",
"path": "/",
"home": "/venv/",
"module": "wsgi",
"isolation": {
"rootfs": "/var/app/sandbox/"
}
} - The ability to specify multiple handler call schemes in the configuration using a new section allows for simpler configuration of mixed addressing schemes, where, for example, the majority of requests are processed through index.php regardless of the requested URI, while the administrator interface directly triggers the script calls. Previously, such setups were made through the definitions of two applications, but now one can suffice. For instance, instead of:"wp_index": {
{
"type": "php",
"user": "wp_user",
"group": "wp_user",
"root": "/path/to/wordpress/",
"script": "index.php"
"wp_direct": {
},"root": "/path/to/wordpress/"
"user": "wp_user",
"group": "wp_user",
"root": "/path/to/wordpress/",
"wp": {
}
}you can specify
{
"targets": {
"user": "wp_user",
"group": "wp_user",
"root": "/path/to/wordpress/","index": {
"direct": {
"script": "index.php"
"wp_direct": {
},encoding
"wp": {
}
}
}
} - Support added May Update of the Raspberry Pi OS Distribution
Source: opennet.ru
