Skip to content

jihgao/node-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-proxy

A simple node proxy

How to use

  • Run npm install to install the dependencies
  • Config the project in config.js
      {
        API_BASE_PATH: "", // The prefix path is used to indentify if it needs to be redirected
        DEFAULT_TARGET_PROXY_HOST: "", // Thr proxy server host, need to be defined with port
        DEFAULT_PUBLIC_PATH: "./"	// The public folder where holds the index.html and other static assets
      }
      
  • Run node server.js, the proxy server will be host at http://127.0.0.1:3000. You can change the port in server.js as you want

About

A simple node proxy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published