Skip to content

Latest commit

 

History

History
43 lines (39 loc) · 583 Bytes

README.md

File metadata and controls

43 lines (39 loc) · 583 Bytes

oxz

local mock

module.exports = {
  port: 9000,
  local: {
    root: path.resolve(__dirname, './data'),
  },
  proxy: {
    enable: false,
  ],
  // ...
}

proxy

module.exports = {
  // ...
  proxy: {
    enable: true,
    rules: [
        {
        pathes: [
            '/api/(.*)'
        ],
        target: 'https://127.0.0.1',
        host: 'xyz.com'
        },
        {
        pathes: [
            '*'
        ],
        target: 'http://localhost:9999',
        host: ''
        }proxyRules[program.proxy]
    },
  ]
  // ...