podproxy
v0.1.2
Published
This is a proxy that automatically pulls information from your .podrc configuration file and grabs the names and assigned ports. All requests to the newly spawned proxy server will be forwarded to the appropriate server.
Downloads
2
Maintainers
Readme
podproxy
Not yet tested at all. Careful if you pull.
This is a proxy that automatically pulls information from your .podrc configuration file and grabs the names and assigned ports. All requests to the newly spawned proxy server will be forwarded to the appropriate server.
Usage
npm install podproxy
Configuration
# Uses environmental PORT variable, or defaults to port 80.
var server = require('podproxy');
var options = {
host: {
username: 'admin',
password: 'admin',
location: '127.0.0.1',
port: '19999'
},
interval: 20000, # How often to check for updated config.
static_routes: {
logs: 8888,
proxy: 8000 # if you use the gui,
web: 19999 # pod web services
}
};
server(options);
Updated November 1, 2015 - Mike Kozak