Dynamic reverse proxy configuration

Hi,
I am currently trying to develop a module that could allow Nginx act
as a reverse proxy to a cluster of nodes using Zookeeper. I would like
to ask if it is possible to develop such a module.

I found a question on StackOverflow describing exactly my situation:

The question is: is there any way to make nginx (or other proxy) read
its config from Apache ZooKeeper? Or more broader: is there any way to
effectively switch proxy configuration on fly?

Any suggestion is appreciated :slight_smile:

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,222519,222519#msg-222519

I recommend you use the ngx_lua module

here’s some example (http://openresty.org/#DynamicRoutingBasedOnRedis)

you can change redis to ngx_lua’s internal dict facility which is shared
between workers for speed.

and write some location handler to accept outside configuration data and
save it in ngx_lua’s dict.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,222519,222531#msg-222531

Thanks for the suggestion, I’ll take a look.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,222519,222629#msg-222629

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs