Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

Dynamic config options from ENV (3 replies)

$
0
0
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

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>