Welcome! Log In Create A New Profile

Advanced

Unit 1.2 release

Valentin V. Bartenev
June 07, 2018 12:08PM
Hello,

I'm glad to announce a new release of NGINX Unit.

Changes with Unit 1.2 07 Jun 2018

*) Feature: configuration of environment variables for application
processes.

*) Feature: customization of php.ini path.

*) Feature: setting of individual PHP configuration options.

*) Feature: configuration of execution arguments for Go applications.

*) Bugfix: keep-alive connections might hang after reconfiguration.


Here's an example of new configuration parameters of application objects:

{
"args-example": {
"type": "go",
"executable": "/path/to/compiled/go/binary",
"arguments": ["arg1", "arg2", "arg3"]
},

"opts-example": {
"type": "php",
"root": "/www/site",
"script": "phpinfo.php",

"options": {
"file": "/path/to/php.ini",
"admin": {
"memory_limit": "256M",
"variables_order": "EGPCS",
"short_open_tag": "1"
},
"user": {
"display_errors": "0"
}
}
},

"env-example": {
"type": "python",
"path": "/www/django",
"module": "wsgi",

"environment": {
"DB_ENGINE": "django.db.backends.postgresql_psycopg2",
"DB_NAME": "mydb",
"DB_HOST": "127.0.0.1"
}
}
}

Please note that "environment" can be configured for any type of application.

Binary Linux packages and Docker images are available here:

- Packages: https://unit.nginx.org/installation/#precompiled-packages
- Docker: https://hub.docker.com/r/nginx/unit/tags/

wbr, Valentin V. Bartenev

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Unit 1.2 release

Valentin V. Bartenev June 07, 2018 12:08PM

Re: Unit 1.2 release

Ralph Seichter June 08, 2018 08:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 256
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready