Module which adds new upstream host and port

Module which adds new upstream host and port to pool. How it should be
done?

Posted at Nginx Forum: