rp
Node.js中的反向代理。
安装
npm install nrp2
例子
以下是https://www.google.com的反向代理示例:
var NRP = require('nrp2');
var google = new NRP({
host: 'https://www.google.com', // the DOMAIN that will be proxied
ssl: true, // use HTTPS or not, default false
key: 'nrp-key.pem', // only used when SSL is true, see more detail below section
cert: 'nrp-cert.pem', // only used when SS
评论0
最新资源