<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi everybody,</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">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.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">1. Is it possible to set a config option via ENV varaibles</div><div style="font-family:arial,sans-serif;font-size:13px">
2. If so, does it have any performance implications? (The ENV wont change during run time)</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
Thank you very much for your help.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Max</div></div>