Re: Fetching HTTP value into config at start-up

2014-09-04 Thread oscaretu .
Hello, igorclark Perhahs you can create a shell to launch nginx, and before that, ejecute a shell to assign a environment variable as a result of the execution of a program, or create (update) a file that is to be included from nginx config file when starting Some ideas:

Re: Fetching HTTP value into config at start-up

2014-09-04 Thread igorclark
Thanks Oscar. Yes I'd read that first page and a bunch of those search results before. I guess I'll end up writing custom config files per environment, too, and maybe a script to regenerate and send a HUP to nginx when the data changes. I really wanted to avoid this because it's just one more

Fetching HTTP value into config at start-up

2014-09-03 Thread igorclark
Hi all, I want to read some remote values via HTTP into nginx config variables, just once at nginx startup / reload time, and pass them as fastcgi_params into PHP scripts. I control the remote system, so I'll know if it needs to re-read and can send a HUP to nginx. I don't need it to happen every