Re: Dynamic config options from ENV

2014-06-05 Thread Reinis Rozitis
I am currently experimenting with docker and dynamic setups which work for all environments… too bad that we need to use a custom script do handle the problem at hand. Well probably not that bad if you can use something allready made: https://index.docker.io/u/shepmaster/nginx-template-image/

Re: Dynamic config options from ENV

2014-06-05 Thread Maximilian Schulz
Thank you Jonathan, I was afraid that this is the only option… really sad :( I am currently experimenting with docker and dynamic setups which work for all environments… too bad that we need to use a custom script do handle the problem at hand. But thank you very much. Max On Thu, Jun 5, 2014

Re: Dynamic config options from ENV

2014-06-05 Thread Jonathan Matthews
On 5 June 2014 17:00, Maximilian Schulz wrote: > 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

Dynamic config options from ENV

2014-06-05 Thread Maximilian Schulz
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