Skip to content

elcarim5efil/oxz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]
    },
  ]
  // ...

Releases

No releases published

Packages

No packages published