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:

I recommend you use the ngx_lua module

here’s some example (OpenResty® - Open source)

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:

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

Posted at Nginx Forum: