Welcome! Log In Create A New Profile

Advanced

Re: Allow the usen of the "env" directive in contexts other than "main"

Maxim Dounin
January 04, 2018 12:08PM
Hello!

On Thu, Jan 04, 2018 at 01:22:15AM +0000, German Jaber wrote:

> Is there a reason why the "env" directive is only allowed inside the "main"
> contexts?

The "env" directive controls which environment variables will be
available in the nginx worker processes. Environment variables
apply to the whole worker process, and are not differentiated based on
what the worker process is doing in the particular time. As such,
these directives are to be specified at the global level.

> It would simplify many of my Docker deployments if I could do away with sed
> and envsubst and use the "env" directive directly.
>
> If the maintainers approve the inclusion of this feature in Nginx, I would
> like to offer my time to this project by implementing this functionality.

Sorry, from your description it is not clear what you are trying
to do and how the "env" directive can help here. You may want to
elaborate on this.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Allow the usen of the "env" directive in contexts other than "main"

German Jaber January 03, 2018 08:24PM

Re: Allow the usen of the "env" directive in contexts other than "main"

Maxim Dounin January 04, 2018 12:08PM

Re: Re: Allow the usen of the "env" directive in contexts other than "main"

German Jaber January 04, 2018 09:30PM

Re: Re: Allow the usen of the "env" directive in contexts other than "main"

Maxim Dounin January 05, 2018 12:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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