HTTP proxy server in Node.js allowing modification of user responses.
https://www.npmjs.com/package/https-p…
https://www.npmjs.com/package/https-p…
A simple HTTP proxy server which lets you modify user responses. A future addition will be support for HTTPS.
Getting started
Getting up and running is as simple as installing application dependencies and starting up a local development server.
Setting up development environment:
$ npm install
$ npm run setup
To run the app:
$ node index.js
Config options
The project offers the following default config thru config.js file:
{
"proxySettings": {
"port": "7777",
"headersFolderLocation": "./headers",
"userResponseHeadersFile": "userResponseHeaders.json",
"debug": false
}
}
To override these values create a
config.json
in your root folder, similar to sample-config.json
.
root@wh:~/https-proxy-server-by-seek-oss# node index.js
显示:
Starting proxy server on port 6677
(我把config.js里的7777改为了6677)
from https://github.com/seek-oss/https-proxy-server
No comments:
Post a Comment