Total Pageviews

Sunday, 9 December 2018

一个基于nodejs的HTTP proxy server程序

HTTP proxy server in Node.js allowing modification of user responses. 


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