A NodeJS HTTP Reverse Proxy based on Modify Headers Firefox add-on.
This proxy reads JSON configuration file exported by the add-on and runs an HTTP proxy server which acts as Modify Headers filter.
It can be used simply for reverse proxying HTTP/HTTPS as well. All HTTP/HTTPS methods are supported (i.e. GET, POST, PUT, DELETE, etc.).
It's required NodeJS v0.6.x or higher.
It's not required the installation. Just copy mh-node.js
wherever you want. No modules dependencies.
You could make mh-node.js executable if you don't want explicitly use node:
chmod +x mh-node.js
Inside mh-node.js there's a short configuration section you can modify in according to your needs.
A sample modifyheaders.json
is provided in the project. You need to
replace it with yours. The modifyheaders.json can be edit manually
or can be prepared with Modify Headers Firefox add-on
and exported by the same tool.
You are free to change the configuration on-the-fly without restaring the proxy. mh-node
will load it automatically.
node mh-node.hs
or (PATH scope)
mh-node.js
Copyright (C) 2012 by Guido D'Albore. Licensed under the Apache License, Version 2.0