simple-proxy-server
v0.0.2
Published
Simple HTTP to HTTPs proxy server
Downloads
8
Readme
simple-proxy-server
Simple HTTP to HTTPs proxy server
Installation
npm install simple-proxy-server --save
Basic Usage
var Proxy = require('simple-proxy-server'),
p = new Proxy(
'https://www.domain.ru', // target destination
8080, // port to listen on
{host: 'www.domain.ru'}, // host for SSL
{user: 'user', pass: 'pass'} // Basic Auth credentials for your proxy
)
;
p.run(function(adress) {
console.log('http proxy server %s', adress);
});