nrp:Node.js中的反向代理

时间:2021-05-21 05:58:27
【文件属性】:
文件名称:nrp:Node.js中的反向代理
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-21 05:58:27
JavaScript 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
【文件预览】:
nrp-master
----lib()
--------nrp.js(2KB)
----example()
--------http_httpbin.js(120B)
--------https_baidu.js(201B)
----LICENSE(1KB)
----test()
--------nrp-key.pem(891B)
--------test.js(2KB)
--------nrp-cert.csr(696B)
--------nrp-cert.pem(940B)
----README.md(1KB)
----.gitignore(526B)
----index.js(41B)
----package.json(480B)

网友评论