Welcome! Log In Create A New Profile

Advanced

Re: Fetching HTTP value into config at start-up

September 04, 2014 10:31AM
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 moving part that I'd rather not have.

It seems pretty reasonable to want to do this sort of thing just once at startup. Even getting an env variable for every HTTP request seems kind of an overhead, however tiny. Maybe I'll look at writing a module to do it some day. When I have enough time to learn how to write network-accessing ngx_* modules without breaking everything ;-)

Anyway, if anyone knows of another way to do it, that'd be great, but in the meantime I appreciate your response. Thanks.

Best,
Igor
Subject Author Posted

Fetching HTTP value into config at start-up

igorclark September 04, 2014 01:07AM

Re: Fetching HTTP value into config at start-up

oscaretu . September 04, 2014 02:38AM

Re: Fetching HTTP value into config at start-up

igorclark September 04, 2014 10:31AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 53
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready