Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1 KB

README.md

File metadata and controls

46 lines (33 loc) · 1 KB

uba-server-proxy

npm version devDependency Status NPM downloads


NPM

Installation

$ npm install uba-server-proxy -D

Usage

Edit the .ubarc file

{
  "proxy": [{
    "url": "/api",
    "options": {
      "target": "http://cnodejs.org",
      "changeOrigin": true,
      "logLevel": "debug"
    }
  }, {
    "url": ["/users", "/orgs"],
    "options": {
      "target": "https://api.github.com",
      "changeOrigin": true,
      "logLevel": "debug"
    }
  }]
}

Look at more https://www.npmjs.com/package/http-proxy-middleware#options