Welcome! Log In Create A New Profile

Advanced

Dynamic config options from ENV

Maximilian Schulz
June 05, 2014 12:02PM
Hi everybody,

is it possible to set a nginx config variable from an ENV variable? I tried
several thing, but none of them worked. The most promising was specifying
"env MY_VAR;" at the top of the nginx.conf and then using its value via
"my_option $ENV{"MY_VAR"};". But it didn't work. I always got an error
about the line not being terminated.

1. Is it possible to set a config option via ENV varaibles
2. If so, does it have any performance implications? (The ENV wont change
during run time)

Thank you very much for your help.

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

Dynamic config options from ENV

Maximilian Schulz June 05, 2014 12:02PM

Re: Dynamic config options from ENV

Jonathan Matthews June 05, 2014 12:22PM

Re: Dynamic config options from ENV

Maximilian Schulz June 05, 2014 12:52PM

Re: Dynamic config options from ENV

Reinis Rozitis June 05, 2014 02:36PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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