Skip to content

matjs/mat-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mat-proxy

npm version

Installation

npm install --save-dev mat-proxy

Usage

var mat   = require('mat')
var proxy = require('mat-proxy')

// 反向代理到指定的host上
mat.task('default', function () {
  mat.url([/\.json/])
    .use(proxy({
      proxyPass: 'your.proxy.host'
    }))
})

Options

  • proxyPass

    反向代理目标host,可以是域名(本地配置host),也可以直接ip地址

About

配置反向代理host的mat插件

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published