0.1.2-beta.3 • Published 6 years ago

http-proxies v0.1.2-beta.3

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

http-proxies

HTTP-pROXies logo

Simple configurable http proxy server

Build Status

Example

npx http-proxies -c conf.json

conf.json

[
  {
    "context": ["/google"],
    "target": "https://www.google.com",
    "secure": false,
    "autoRewrite": true,
    "pathRewrite": {
      "^/google": "/"
    },
    "rewriteHeaders": {
      "Host": "example.com"
    },
    "cookieDomainRewrite": { "*": "" }
  },
  {
    "context": ["/v1/app1"],
    "target": "http://localhost:1234",
    "secure": false,
    "pathRewrite": {
      "^/v1/app1": "/app1"
    }
  },
  {
    "context": ["/app2"],
    "target": "http://localhost:4001",
    "secure": false,
    "changeOrigin": true,
    "enforceAutoRewrite": true
  }
]

Help

  Usage: index [options]

  Options:

    -V, --version      output the version number
    -c, --conf <path>  Config file defaults to ./proxies-conf.json
    -p, --port [path]  Http proxy server port. Default to 8080
    -l, --logs         With access log
    -s, --secure       With SSL (Auto generated self signed certificate)
    -m, --managment    Enable managment
    -h, --help         output usage information
  Examples:

    $ http-proxies --help
    $ http-proxies -c your-proxies-conf.json
    $ http-proxies -c your-proxies-conf.json -lsm

Management UI

Start with the -m option an go to http(s)://localhost:_your_proxy_port/management And you'll get this beautiful management UI

Management UI screen

0.1.2-beta.3

6 years ago

0.1.2-beta.2

6 years ago

0.1.2-beta.1

6 years ago

0.1.1

6 years ago

0.1.0-beta.1

6 years ago

0.1.0

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago