Welcome! Log In Create A New Profile

Advanced

Re: Flask app with virtual Python environment in Unit 1.1 ?

Valentin V. Bartenev
April 29, 2018 05:04PM
On Sunday, 29 April 2018 19:02:47 MSK Ralph Seichter wrote:
[..]
> My application can now be called via NGINX -> NGINX Unit -> App, which
> is exactly what wanted. It also requires certain environment variables
> to be set, and I am now wondering how to pass these on? I found the
> enhancement request https://github.com/nginx/unit/issues/12 but since
> this feature does not seem to be implemented yet, what is the
> recommended method to pass env variables to Unit workers?
>
[..]

Unfortunately, the only way right now is to set them for the main process
(when unitd is executed) or in the application code.

Also, you can pass custom data from nginx using headers.

Setting environment variables through API is planned for the next release
in June.

wbr, Valentin V. Bartenev



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

Flask app with virtual Python environment in Unit 1.1 ?

Ralph Seichter April 29, 2018 10:12AM

Re: Flask app with virtual Python environment in Unit 1.1 ?

Valentin V. Bartenev April 29, 2018 11:08AM

Re: Flask app with virtual Python environment in Unit 1.1 ?

Ralph Seichter April 29, 2018 12:04PM

Re: Flask app with virtual Python environment in Unit 1.1 ?

Valentin V. Bartenev April 29, 2018 05:04PM

Re: Flask app with virtual Python environment in Unit 1.1 ?

Ralph Seichter April 30, 2018 05:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 320
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