Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Is there a way to add/remove server entries dynamically to http-proxy ? #413

chiragsanghvi opened this Issue · 2 comments

3 participants


Used and played around with http-proxy,good for use.

We've a requirement in our project, where we need to scale/add node servers depending on load/traffic.Is there a way to add an entry to list of servers in http-proxy dynamically ?


@chiragsanghvi If you are talking about updating the routes dynamically after starting the proxy server, it can be achieved by adding routes as a json file. http-proxy listens to the file changes and updates the routes.

var options   = { router: 'routes.json' };


Contents of routes.json will be

"router": {
    "": "",
    "": "",
    "": ''

Actually, the contents of routes.json will be:

{ "router" : {
    "" : "",
    "" : "",
    "" : ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.